fix: 修复windows打包内存溢出扩大至4G

Windows执行 npm run build-win
This commit is contained in:
Tester_Z 2021-03-17 10:43:30 +08:00 committed by 刘瑞斌
parent acc6e157a3
commit 3134622871
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,8 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"build": "export NODE_OPTIONS=--max_old_space_size=4096 && vue-cli-service build",
"build-win": "SET NODE_OPTIONS=--max_old_space_size=4096 && vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {