Skip to content

Commit 007c9c5

Browse files
committed
fix: unshift built-in reporters
1 parent c93de65 commit 007c9c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/plugin.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ export default class WebpackBarPlugin extends webpack.ProgressPlugin {
4646
// Reporters
4747
this.reporters = Array.from(this.options.reporters || []);
4848

49-
if (this.options.log) {
50-
this.reporters.push(new LogReporter());
51-
}
52-
5349
if (this.options.bars) {
54-
this.reporters.push(new BarsReporter());
50+
this.reporters.unshift(new BarsReporter());
5551
}
5652

5753
if (this.options.profile) {
58-
this.reporters.push(new ProfileReporter());
54+
this.reporters.unshift(new ProfileReporter());
55+
}
56+
57+
if (this.options.log) {
58+
this.reporters.unshift(new LogReporter());
5959
}
6060
}
6161

0 commit comments

Comments
 (0)