diff --git a/CHANGELOG.md b/CHANGELOG.md index e69de29..e5d2875 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ + +# CHANGELOG + +## 1.0.2 +### Fix: +- Compatibility with latest WebPack 5 diff --git a/lib/index.js b/lib/index.js index bcee943..cc9e167 100644 --- a/lib/index.js +++ b/lib/index.js @@ -70,9 +70,9 @@ class renameOutputPlugin { apply(compiler) { - compiler.hooks.afterPlugins.tap('this-compilation', (compilation) => { + compiler.hooks.compilation.tap('this-compilation', (compilation) => { - compilation.hooks.afterPlugins.tap('optimize-chunks', (chunks) => { + compilation.hooks.afterOptimizeChunks.tap('optimize-chunks', (chunks) => { chunks.forEach((chunk) => { diff --git a/package.json b/package.json index 52adb2f..260a8f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rename-output-webpack-plugin", - "version": "1.0.1", + "version": "1.0.2", "description": "Webpack plugin to rename outfile files / chunks generated by Webpack.", "scripts": { "lint": "eslint lib",