浏览代码

1.publicPath 基础路由改为 wandaBmGuide

unknown 4 年之前
父节点
当前提交
6b7f19714a
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 2 0
      .gitignore
  2. 5 1
      vue.config.js

+ 2 - 0
.gitignore

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

+ 5 - 1
vue.config.js

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