fix: 解决打包报内存溢出问题

pull/5/MERGE
xingyu 2023-04-25 09:44:21 +08:00
parent 419c60e9d9
commit 3669f90629
1 changed files with 3 additions and 3 deletions

View File

@ -12,9 +12,9 @@
"serve": "npm run dev",
"dev": "vite",
"front": "vite --mode front",
"build": "cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts",
"build:test": "cross-env vite build --mode test && esno ./build/script/postBuild.ts",
"build:static": "cross-env vite build --mode static && esno ./build/script/postBuild.ts",
"build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 vite build && esno ./build/script/postBuild.ts",
"build:test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode test && esno ./build/script/postBuild.ts",
"build:static": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode static && esno ./build/script/postBuild.ts",
"build:no-cache": "pnpm clean:cache && npm run build",
"report": "cross-env REPORT=true npm run build",
"type:check": "vue-tsc --noEmit --skipLibCheck",