Skip to content

Commit

Permalink
fix: revert back afterPlugins to call _ensureState
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 9, 2018
1 parent d2f6edb commit 2f17454
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ export default class WebpackBarPlugin extends ProgressPlugin {
// Apply base hooks
super.apply(compiler);

// Register our state after all plugins initialized
hook(compiler, 'afterPlugins', () => {
this._ensureState();
});

// Hook into the compiler before a new compilation is created.
hook(compiler, 'compile', () => {
this._ensureState();
Expand Down

0 comments on commit 2f17454

Please sign in to comment.