0👍
You can create two new instances of CommonsChunkPlugin and make them like this
new webpack.optimize.CommonsChunkPlugin({
name: 'vue',
minChunks: function(module, count) {
return module.resource && (/vue/).test(module.resource)
}
}),
new webpack.optimize.CommonsChunkPlugin({
name: 'jquery',
minChunks: function(module, count) {
return module.resource && (/jquery/).test(module.resource)
}
}),
- [Vuejs]-Access to DOM element with Vue method
- [Vuejs]-VueJS importing local and external script and css files in main file
Source:stackexchange.com