Skip to content

Commit

Permalink
Use "compile" hook within Webpack 4 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattvagni authored and lukeed committed Aug 30, 2018
1 parent 01dd479 commit 633f3c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class WebpackMessages {
};

if (compiler.hooks !== void 0) {
compiler.hooks.compilation.tap(NAME, onStart);
compiler.hooks.compile.tap(NAME, onStart);
compiler.hooks.invalid.tap(NAME, _ => clear() && onStart());
compiler.hooks.done.tap(NAME, onComplete);
} else {
Expand Down

0 comments on commit 633f3c5

Please sign in to comment.