I'm migrating from webpack 3 to 4 and it is painfull ;)
I'm getting this error:
this.htmlWebpackPlugin.getHooks is not a function
I was trying to upgrade all plugins but maybe I'm missing something here?
There was an update to the thread that Bruce linked. As explained by adambreznicky to fix the issue one should:
npm i --save-dev html-webpack-plugin@next
new InterpolateHtmlPlugin(env.raw)
to new InterpolateHtmlPlugin(HtmlWebpackPlugin, env.raw)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With