sun1l / rename-output-webpack-plugin

Webpack plugin to custom rename each outfile files / chunks generated during build.
MIT License
7 stars 1 forks source link

Fails with Webpack 5 #3

Open jaschaio opened 3 years ago

jaschaio commented 3 years ago
[webpack-cli] TypeError: compiler.plugin is not a function
at renameOutputPlugin.apply (/app/node_modules/rename-output-webpack-plugin/dist/index.js:87:22)
at createCompiler (/app/node_modules/webpack/lib/webpack.js:69:12)
at create (/app/node_modules/webpack/lib/webpack.js:113:15)
at webpack (/app/node_modules/webpack/lib/webpack.js:121:46)
at f (/app/node_modules/webpack/lib/index.js:35:15)
at WebpackCLI.createCompiler (/app/node_modules/webpack-cli/lib/webpack-cli.js:176:24)
at WebpackCLI.run (/app/node_modules/webpack-cli/lib/webpack-cli.js:268:25)
at async runCLI (/app/node_modules/webpack-cli/lib/bootstrap.js:59:9)
ChengBenj commented 6 months ago

Same issue here.

Any solution?