Skip to content

Commit cc395dc

Browse files
committed
feat: solve the problem of memory overflow in packaging
1 parent a614013 commit cc395dc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/home/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "pnpm build:open",
88
"preview": "vite preview --mode open",
99
"start": "node copy-docs.js && vite --mode open",
10-
"build:open": "node copy-docs.js && vite build --mode open",
10+
"build:open": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" node copy-docs.js && vite build --mode open",
1111
"analyze": "node copy-docs.js && vite build --mode analyze",
1212
"eslint": "npx eslint . --ext .js,.jsx,.ts,.tsx --fix",
1313
"prettier": "npx prettier --write ./**/*.{ts,tsx,css,less,scss}",
@@ -104,6 +104,7 @@
104104
"stylelint": "^14.9.1",
105105
"stylelint-config-standard": "^26.0.0",
106106
"unocss": "^0.39.3",
107+
"cross-env": "^7.0.3",
107108
"unplugin-auto-import": "0.8.7",
108109
"unplugin-vue-components": "^0.19.9",
109110
"unplugin-vue-markdown": "^0.25.2",

0 commit comments

Comments
 (0)