Skip to content

Commit

Permalink
fix: unshift built-in reporters
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 1, 2018
1 parent c93de65 commit 007c9c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ export default class WebpackBarPlugin extends webpack.ProgressPlugin {
// Reporters
this.reporters = Array.from(this.options.reporters || []);

if (this.options.log) {
this.reporters.push(new LogReporter());
}

if (this.options.bars) {
this.reporters.push(new BarsReporter());
this.reporters.unshift(new BarsReporter());
}

if (this.options.profile) {
this.reporters.push(new ProfileReporter());
this.reporters.unshift(new ProfileReporter());
}

if (this.options.log) {
this.reporters.unshift(new LogReporter());
}
}

Expand Down

0 comments on commit 007c9c5

Please sign in to comment.