Can't work with alias in webpack cofiguration
Genuifx opened this issue · comments
WZT commented
I use this plugin to build vue application, it's awesome.
but when i set the alias options in webpack , Dllplugin can not recommend it. it will take two version of vue, that is terrible.
my configuration:
{
// some other configs
plugins: [
new DllBundlesPlugin({
bundles: { vendor: [''vue"] }
}),
//... other plugins
],
resolve:{
alias:{
'vue$': 'vue/dist/vue.common.js'
}
}
}
hope someone to help
WZT commented
Anyone, give help?
WZT commented
put alias config before setting dllBundlePlugin can fix this.