From 4cea3fb159ca8f0767623c22bbfd8ef657fa5f4c Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 16 Mar 2018 10:15:31 +0330 Subject: [PATCH] show more detailed progress --- lib/builder/webpack/plugins/progress.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/builder/webpack/plugins/progress.js b/lib/builder/webpack/plugins/progress.js index 72f914a7c0..48e47645ec 100644 --- a/lib/builder/webpack/plugins/progress.js +++ b/lib/builder/webpack/plugins/progress.js @@ -10,7 +10,7 @@ module.exports = class ProgressPlugin extends webpack.ProgressPlugin { constructor(options) { super(options) - this.handler = (percent, msg) => this.updateProgress(percent, msg) + this.handler = (percent, msg, ...details) => this.updateProgress(percent, msg, details) this.options = options @@ -27,7 +27,7 @@ module.exports = class ProgressPlugin extends webpack.ProgressPlugin { return sharedState[this.options.name] } - updateProgress(percent, msg) { + updateProgress(percent, msg, details) { const progress = Math.floor(percent * 100) this.state.progress = progress @@ -76,8 +76,7 @@ module.exports = class ProgressPlugin extends webpack.ProgressPlugin { }) // Update spinner - this.spinner.start() - this.spinner.text = 'Compiling ' + progressbars.join('') + ' ' + additional.join(' ') + this.spinner.text = _.startCase(msg) + ' ' + progressbars.join('') + ' ' + additional.join(' ') } }