diff --git a/src/index.js b/src/index.js index 7c53bcf..943231d 100644 --- a/src/index.js +++ b/src/index.js @@ -152,9 +152,9 @@ class ESLintWebpackPlugin { }); // await and interpret results - compilation.hooks.additionalAssets.tapAsync( + compilation.hooks.processAssets.tapAsync( this.key, - async (callback) => { + async (_, callback) => { const { errors, warnings, generateReportAsset } = await report(); if (warnings) {