chore: build script增加内存配置(解决nodejs默认配置内存益处)

This commit is contained in:
Siyu Kong 2023-02-21 18:41:29 +08:00
parent 2ec6978400
commit 805f260dff

View File

@ -8,9 +8,9 @@
"i": "pnpm install", "i": "pnpm install",
"dev": "vite --mode base", "dev": "vite --mode base",
"ts:check": "vue-tsc --noEmit", "ts:check": "vue-tsc --noEmit",
"build:pro": "vite build --mode pro", "build:pro": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode pro",
"build:dev": "vite build --mode dev", "build:dev": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode dev",
"build:test": "npm run ts:check && vite build --mode test", "build:test": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode test",
"serve:pro": "vite preview --mode pro", "serve:pro": "vite preview --mode pro",
"serve:dev": "vite preview --mode dev", "serve:dev": "vite preview --mode dev",
"serve:test": "vite preview --mode test", "serve:test": "vite preview --mode test",