问题描述:两套标题和icon,切换打包命令,动态更改
解决方法:
1.创建三个文件
.env(默认)
VUE_APP_CLIENT_TYPE=maxcn
VUE_APP_ICON=first.ico
VUE_APP_TITLE=第一套标题
.env.cs
VUE_APP_CLIENT_TYPE=cs
VUE_APP_ICON=second.ico
VUE_APP_TITLE=第二套标题
NODE_ENV=production
.env.maxcn
VUE_APP_CLIENT_TYPE=maxcn
VUE_APP_ICON=first.ico
VUE_APP_TITLE=第一套标题
NODE_ENV=production
.package.json
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build --mode maxcn",
"build-cs": "vue-cli-service buil