fix: ProgressBarPlugin ends at 91%

This commit is contained in:
Clark Du 2017-12-13 14:53:32 +08:00 committed by Pooya Parsa
parent 4adfdf3313
commit 0fc98f3927

View File

@ -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
// --------------------------------------