Skip to content

Commit f015e00

Browse files
committed
fix: 增加构建脚本的内存限制
1 parent ca755c8 commit f015e00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"scripts": {
66
"setup": "bun install",
77
"dev": "rspress dev",
8-
"build": "rspress build",
9-
"build:fun": "rspress build -c rspress.config.fun.ts",
8+
"build": "NODE_OPTIONS='--max-old-space-size=8192' rspress build",
9+
"build:fun": "NODE_OPTIONS='--max-old-space-size=8192' rspress build -c rspress.config.fun.ts",
1010
"generate:docs": "rm -rf docs/en/guide/docs/* && rm -rf docs/zh/guide/docs/* && bun scripts/docs.js"
1111
},
1212
"dependencies": {

0 commit comments

Comments
 (0)