new HtmlWebpackPlugin({
template: 'src/template.html',
filename: 'index.html',
chunks: 'all'
}),
new DllReferencePlugin({
manifest: require(path.join(distDllPath, 'vendor.manifest.json'))
})
如上所示,生成了vendor.dll.js和main.js,但是main.js还是打包了vue、jquery等公共代码(vendor.dll.js已打包了vue、jquery等公共代码),那该怎么改呢?
webpack 配置一下 externals