|
@@ -43,13 +43,14 @@ module.exports = {
|
|
plugins: [
|
|
plugins: [
|
|
new webpack.HashedModuleIdsPlugin(), // 解决vender后面的hash每次都改变
|
|
new webpack.HashedModuleIdsPlugin(), // 解决vender后面的hash每次都改变
|
|
new HtmlWebpackPlugin({
|
|
new HtmlWebpackPlugin({
|
|
|
|
+ inject: true,
|
|
template: path.resolve(__dirname, '../index.html')
|
|
template: path.resolve(__dirname, '../index.html')
|
|
}),
|
|
}),
|
|
new AutoDllPlugin({
|
|
new AutoDllPlugin({
|
|
inject: true, // will inject the DLL bundle to index.html
|
|
inject: true, // will inject the DLL bundle to index.html
|
|
debug: true,
|
|
debug: true,
|
|
filename: '[name]_[hash].js',
|
|
filename: '[name]_[hash].js',
|
|
- path: './dll',
|
|
|
|
|
|
+ path: './resourcesWeb/dll',
|
|
entry: {
|
|
entry: {
|
|
vendor: ['vue', 'vue-router', 'vuex', 'element-ui']
|
|
vendor: ['vue', 'vue-router', 'vuex', 'element-ui']
|
|
}
|
|
}
|