Explorar el Código

1.publicPath 基础路由改为 wandaBmGuide

unknown hace 5 años
padre
commit
6b7f19714a
Se han modificado 2 ficheros con 7 adiciones y 1 borrados
  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',
 }