perf: 优化 Vite 构建配置降低内存使用 - 移除生产环境visualizer插件

This commit is contained in:
2026-04-20 06:28:56 +08:00
parent bed73618d6
commit e505ccd76e
2 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "NODE_OPTIONS=--max-old-space-size=8192 tsc && vite build",
"build": "NODE_OPTIONS=--max-old-space-size=6144 tsc && vite build",
"preview": "vite preview"
},
"dependencies": {