From 0fc98f3927dfde8d7c67c0034cea8c5dfedbbc2c Mon Sep 17 00:00:00 2001 From: Clark Du Date: Wed, 13 Dec 2017 14:53:32 +0800 Subject: [PATCH] fix: ProgressBarPlugin ends at 91% --- lib/builder/webpack/client.config.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/builder/webpack/client.config.js b/lib/builder/webpack/client.config.js index 393e7f0e97..88c815e22d 100644 --- a/lib/builder/webpack/client.config.js +++ b/lib/builder/webpack/client.config.js @@ -92,9 +92,6 @@ module.exports = function webpackClientConfig() { })) ) - // Add friendly error plugin - config.plugins.push(new FriendlyErrorsWebpackPlugin()) - // Build progress bar if (this.options.build.profile) { config.plugins.push(new ProgressPlugin({ @@ -104,10 +101,14 @@ module.exports = function webpackClientConfig() { config.plugins.push(new ProgressBarPlugin({ complete: Chalk.green('█'), incomplete: Chalk.white('█'), - format: ' :bar ' + Chalk.green.bold(':percent') + ' :msg' + format: ' :bar ' + Chalk.green.bold(':percent') + ' :msg', + clear: false })) } + // Add friendly error plugin + config.plugins.push(new FriendlyErrorsWebpackPlugin()) + // -------------------------------------- // Dev specific config // --------------------------------------