Browse Source

1.publicPath 基础路由改为 wandaBmGuide

unknown 4 years ago
parent
commit
6b7f19714a
2 changed files with 7 additions and 1 deletions
  1. 2 0
      .gitignore
  2. 5 1
      vue.config.js

+ 2 - 0
.gitignore

@@ -2,6 +2,8 @@
 node_modules
 package-lock.json
 /dist
+# 忽略提交打包后的wandaBmGuide目录
+/wandaBmGuide 
 
 # local env files
 .env.local

+ 5 - 1
vue.config.js

@@ -41,5 +41,9 @@ module.exports = {
             .loader("vue-svg-loader")
     },
     lintOnSave: false,
-    publicPath: "/",
+    publicPath: "/wandaBmGuide",
+    // 打包名称
+    outputDir: 'wandaBmGuide',
+    // 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录
+    assetsDir: 'static',
 }