We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 823c7d7 commit 4e0dc73Copy full SHA for 4e0dc73
src/plugin.js
@@ -169,14 +169,17 @@ export default class WebpackBarPlugin extends ProgressPlugin {
169
hook(compiler, 'done', (stats) => {
170
this._ensureState();
171
172
- const time = prettyTime(process.hrtime(this.state.start), 2);
173
const hasErrors = stats.hasErrors();
174
const status = hasErrors ? 'with some errors' : 'succesfuly';
175
+ const time = this.state.start
176
+ ? ' in ' + prettyTime(process.hrtime(this.state.start), 2)
177
+ : '';
178
+
179
Object.assign(this.state, {
180
...DEFAULT_STATE,
181
progress: 100,
- message: `Compiled ${status} in ${time}`,
182
+ message: `Compiled ${status}${time}`,
183
hasErrors,
184
});
185
0 commit comments