build 添加 环境变量 NODE_ENV=production

This commit is contained in:
sin 2019-04-01 23:41:13 +08:00
parent ba409a63c7
commit 021d7771dd

View File

@ -5,7 +5,7 @@
"scripts": {
"start": "npm run serve",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"build": "vue-cli-service build NODE_ENV=production",
"lint": "vue-cli-service lint"
},
"dependencies": {