Firstly, using webpack.DllPlugin to generate vendor.dll.js.
Secondly, using html-webpack-include-assets-plugin to insert vendor.dll.js into html, which generated by HtmlWebpackPlugin. Like this:
new HtmlWebpackPlugin(),
new webpack.DllReferencePlugin({
context: __dirname,
manifest: require('./vendor-manifest.json')
})
new HtmlWebpackIncludeAssetsPlugin({
assets: ['vendor.dll.js'],
hash: true,
append: false,
})
Question:
How can I to insert vendor.dll.js into an exsiting html, without using html-webpack-plugin ?
Thanks