Skip to content

Commit

Permalink
Change afterCompile to afterEmit hook (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
andywer authored Jan 21, 2020
1 parent cf3d9e2 commit cefb2c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default class WorkerPlugin {
}
});

compiler.hooks.afterCompile.tap(NAME, compilation => {
compiler.hooks.afterEmit.tap(NAME, compilation => {
if (workerId === 0) {
compilation.warnings.push({
message:
Expand Down

0 comments on commit cefb2c5

Please sign in to comment.