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

main
wu.jian2 1 year ago
parent 4503407fb1
commit c958483622

@ -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'

@ -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'

@ -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'

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

@ -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",

@ -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,

Loading…
Cancel
Save