We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c93de65 commit 007c9c5Copy full SHA for 007c9c5
src/plugin.js
@@ -46,16 +46,16 @@ export default class WebpackBarPlugin extends webpack.ProgressPlugin {
46
// Reporters
47
this.reporters = Array.from(this.options.reporters || []);
48
49
- if (this.options.log) {
50
- this.reporters.push(new LogReporter());
51
- }
52
-
53
if (this.options.bars) {
54
- this.reporters.push(new BarsReporter());
+ this.reporters.unshift(new BarsReporter());
55
}
56
57
if (this.options.profile) {
58
- this.reporters.push(new ProfileReporter());
+ this.reporters.unshift(new ProfileReporter());
+ }
+
+ if (this.options.log) {
+ this.reporters.unshift(new LogReporter());
59
60
61
0 commit comments