Browse Source

修改打包

Limengbo 5 years ago
parent
commit
5fd9296015
2 changed files with 4 additions and 2 deletions
  1. 1 0
      .gitignore
  2. 3 2
      build/webpack.base.conf.js

+ 1 - 0
.gitignore

@@ -1,6 +1,7 @@
 .DS_Store
 node_modules/
 /dist/
+resourcesWeb/
 npm-debug.log*
 yarn-debug.log*
 yarn-error.log*

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

@@ -12,7 +12,8 @@ module.exports = {
   },
   output: {
     path: path.resolve(__dirname, '../resourcesWeb'),
-    filename: '[name].[hash].js'
+    filename: '[name].[hash].js',
+    publicPath: '/'
   },
   module: {
     rules: [
@@ -50,7 +51,7 @@ module.exports = {
       inject: true, // will inject the DLL bundle to index.html
       debug: true,
       filename: '[name]_[hash].js',
-      path: './',
+      path: './dll',
       entry: {
         vendor: ['vue', 'vue-router', 'vuex', 'element-ui']
       }