增加用于开发环境发布的环境配置文件。目的:启用代码压缩

This commit is contained in:
pang.lizong
2019-09-23 10:56:08 +08:00
parent b6da8ac273
commit 5ac8392742
2 changed files with 8 additions and 0 deletions

7
.env.development-deploy Normal file
View File

@@ -0,0 +1,7 @@
# env 用于前端dev环境发布。与.env.development的区别NODE_ENV = production开启代码压缩
NODE_ENV = 'production'
# flag
VUE_APP_FLAG='development'

View File

@@ -6,6 +6,7 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build:dev": "vue-cli-service build --mode development-deploy",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"lint": "vue-cli-service lint",