Webpack 4, this.htmlWebpackPlugin.getHooks is not a function
There was an update to the thread that Bruce linked. As explained by adambreznicky to fix the issue one should:
- delete old node_modules and reinstall fresh
npm i --save-dev html-webpack-plugin@next
- modify
new InterpolateHtmlPlugin(env.raw)
tonew InterpolateHtmlPlugin(HtmlWebpackPlugin, env.raw)