ソースを参照

feat: 去除打Pro包的环境和指令

wu.jian2 1 年間 前
コミット
c958483622

+ 0 - 3
data-room-ui/.env.history

@@ -9,7 +9,4 @@ VUE_APP_BASE = '/bigScreen'
 # VUE_APP_HISTORY为是否开启history模式
 VUE_APP_HISTORY = 'y'
 
-# 打包后的文件夹名称
-VUE_APP_OUTPUT_DIR = 'dataRoomUi'
-
 VUE_APP_BUILD_TYPE = 'example'

+ 0 - 14
data-room-ui/.env.pro.history

@@ -1,14 +0,0 @@
-NODE_ENV = production
-
-# just a flag
-ENV = 'history'
-
-# VUE_APP_BASE为项目访问路径的前缀
-VUE_APP_BASE = '/dataRoomPro'
-# VUE_APP_HISTORY为是否开启history模式
-VUE_APP_HISTORY = 'y'
-
-# 打包后的文件夹名称
-VUE_APP_OUTPUT_DIR = 'dataRoomPro'
-
-VUE_APP_BUILD_TYPE = 'example'

+ 0 - 10
data-room-ui/.env.pro.production

@@ -1,10 +0,0 @@
-# just a flag
-ENV = 'production'
-
-# base api
-VUE_APP_BASE_API = '/dataRoomPro'
-
-# 打包后的文件夹名称
-VUE_APP_OUTPUT_DIR = 'dataRoomPro'
-
-VUE_APP_BUILD_TYPE = 'example'

+ 0 - 2
data-room-ui/.env.production

@@ -4,7 +4,5 @@ ENV = 'production'
 # base api
 VUE_APP_BASE_API = '/bigScreen'
 
-# 打包后的文件夹名称
-VUE_APP_OUTPUT_DIR = 'dataRoomUi'
 
 VUE_APP_BUILD_TYPE = 'example'

+ 0 - 3
data-room-ui/package.json

@@ -26,9 +26,6 @@
     "build:stage": "vue-cli-service build --mode staging",
     "build:hash": "vue-cli-service build",
     "build:history": "vue-cli-service build --mode history",
-    "build:hash:pro": "vue-cli-service build --name dataRoomPro",
-    "build:history:pro": "vue-cli-service build --mode=pro.history",
-    "build:history:all": "vue-cli-service build --mode history && vue-cli-service build --mode=pro.history",
     "preview": "node build/index.js --preview",
     "lint": "eslint --ext .js,.vue packages",
     "lint:fix": "eslint --ext .js,.vue packages --fix",

+ 1 - 1
data-room-ui/vue.config.example.js

@@ -42,7 +42,7 @@ module.exports = {
   },
   publicPath:
     process.env.VUE_APP_HISTORY === 'y' ? process.env.VUE_APP_BASE : './',
-  outputDir: process.env.VUE_APP_OUTPUT_DIR || 'dist',
+  outputDir: 'dataRoomUi',
   assetsDir: 'static',
   lintOnSave: false,
   productionSourceMap: false,