!5 build script增加内存配置(解决nodejs默认配置内存溢出)

Merge pull request !5 from 孔思宇/feat-buildscript
This commit is contained in:
芋道源码 2023-03-01 00:53:59 +00:00 committed by Gitee
commit 4153a702fd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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