瀏覽代碼

修改打包相关的参数

dongjh 1 年之前
父節點
當前提交
e6169ac163
共有 4 個文件被更改,包括 6 次插入5 次删除
  1. 1 1
      .env
  2. 2 1
      .gitignore
  3. 1 1
      src/router/index.js
  4. 2 2
      vue.config.js

+ 1 - 1
.env

@@ -1,5 +1,5 @@
 NODE_ENV=production
-VUE_APP_PLATFORM_NAME=JeecgBoot 企业级低代码平台
+VUE_APP_PLATFORM_NAME=固安设备监测系统
 # 开启单点登录
 VUE_APP_SSO=false
 # 开启微应用模式

+ 2 - 1
.gitignore

@@ -1,6 +1,6 @@
 node_modules
 .DS_Store
-dist
+screen
 .npmrc
 .cache
 
@@ -15,3 +15,4 @@ dist
 
 ## front
 /yarn-error.log
+package-lock.json

+ 1 - 1
src/router/index.js

@@ -5,7 +5,7 @@ import { constantRouterMap } from '@/config/router.config'
 Vue.use(Router)
 
 export default new Router({
-  mode: 'history',
+  // mode: 'history',
   base: process.env.BASE_URL,
   scrollBehavior: () => ({ y: 0 }),
   routes: constantRouterMap

+ 2 - 2
vue.config.js

@@ -15,7 +15,7 @@ module.exports = {
   // 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
   productionSourceMap: false,
   //qiankuan打包时放开
-  //outputDir: "../dist/main",
+  outputDir: "screen",
   // 多入口配置
   // pages: {
   //   index: {
@@ -25,7 +25,7 @@ module.exports = {
   //   }
   // },
   //打包app时放开该配置
-  //publicPath:'/',
+  publicPath:'/screen',
   configureWebpack: config => {
     //生产环境取消 console.log
     if (process.env.NODE_ENV === 'production') {