Open Coodool opened 6 years ago
Thanks for the issue filing with great detail and for the thumbs up that was left here. This issue sounds like it has merit, but it's beyond my current knowledge to deal with. If you'd like to submit a concrete code solution, I'd be happy to learn along, but I'm probably not going to tackle this otherwise.
Description
I used DllPlugin to split vendors, and add-asset-html-webpack-plugin is introduced to integrate the vendors into the html-webpack-plugin's output.
When I introduced html-webpack-template in my webpack configuration, an issue occurs: The HTML file generated by html-wepack-template doesn't contain the vendor bundle, though listed in the output of webpack.
Webpack's output:
HTML files:
Solutions I've tried
inject: true
, the webpage works, but there are two app.js included in the HTML files, one by HtmlWebpackPlugin and the other by html-webpack-template. It's not the best practice.