hxlniada / webpack-concat-plugin

a plugin to help webpack to concat file and inject to html
https://github.com/hxlniada/webpack-concat-plugin
97 stars 55 forks source link

updates for next version html-webpack-plugin #69

Closed Jorybraun closed 5 years ago

Jorybraun commented 5 years ago

I ran into this issue today after upgrading to the next version of weback-html-plugin. https://github.com/hxlniada/webpack-concat-plugin/issues/61

i left the old compiler options, this should be backwards compatible as i ran it with both versions of htmlWebpackPlugin, only the local decency version of webpack has to be the latest for this to work i guess, if that is true then the backwards compatibility will most likely not work.

Im not really sure if this will actually work unless the local version of html-webpack-plugin is upgraded aslo.

Perhaps we a conditional for the old compilation hooks. that might work.

Let me know what you think, this is my first time contributing to an open source project! :)