增加内存不足时使用的命令

This commit is contained in:
蒋吉兆
2021-11-25 15:25:36 +08:00
parent 86c5f9184a
commit 23304c7a9a
3 changed files with 123 additions and 86 deletions
+3 -1
View File
@@ -5,7 +5,9 @@
"scripts": {
"serve": "node openDocument.js && vite --host --mode development",
"build": "vite build --mode production",
"preview": "vite preview"
"limit-build": "npm install increase-memory-limit-fixbug cross-env -g && npm run fix-memory-limit && node ./limit && npm run build",
"preview": "vite preview",
"fix-memory-limit": "cross-env LIMIT=4096 increase-memory-limit"
},
"dependencies": {
"@element-plus/icons": "0.0.11",