webpack-concat-plugin icon indicating copy to clipboard operation
webpack-concat-plugin copied to clipboard

compiler.hooks not defined. Running with webpack 1.15.0

Open gdad-s-river opened this issue 6 years ago • 1 comments

Does this plugin work with webpack 1.x ? I've a legacy project with webpack 1.15.0 and when I tried using the plugin to concatenate a bunch of legacy js files ( having globals all around, without any module system ), this error was thrown.

 /Users/arihant.verma/Documents/code/fore/node_modules/webpack-concat-plugin/release.js:346
[0]             compiler.hooks.compilation.tap('webpackConcatPlugin', function (compilation) {
[0]                            ^
[0]
[0] TypeError: Cannot read property 'compilation' of undefined

gdad-s-river avatar Nov 15 '18 06:11 gdad-s-river

I think this happens because I'm using webpack 1.15.0. Could you tell me @hxlniada, which version would be compatible with webpack 1.15.0 ? I couldn't find any hints since there are no release notes attached with releases.

gdad-s-river avatar Nov 15 '18 09:11 gdad-s-river