Limengbo 5 роки тому
батько
коміт
6ac1311569
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      build/webpack.base.conf.js

+ 2 - 1
build/webpack.base.conf.js

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