build 打包配置优化

This commit is contained in:
bootx
2024-10-06 17:24:15 +08:00
parent c0ccc48d14
commit e11e8a31d9
6 changed files with 24 additions and 19 deletions

View File

@@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"bootstrap": "pnpm install",
"build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build",
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build --mode build",
"build:analyze": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build --mode analyze",
"build:no-cache": "pnpm store prune && npm run build",
"dev": "pnpm vite --mode admin --port=13000",