Skip to content

Commit f7c888d

Browse files
chore: set node allocated memory size in the build command
1 parent 331d669 commit f7c888d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"scripts": {
2222
"start": "vite --host localhost --port 3000 --open",
2323
"serve": "vite --host",
24-
"build": "vite build --outDir build",
24+
"build": "cross-env NODE_OPTIONS=--max_old_space_size=4096 vite build --outDir build",
2525
"build-no-minify": "cross-env NO_MINIFY=true npm run build",
2626
"test": "jest --coverage",
2727
"eslint": "eslint src/* ",
@@ -65,4 +65,4 @@
6565
"typescript": "^4.8.3",
6666
"vite": "^3.1.3"
6767
}
68-
}
68+
}

0 commit comments

Comments
 (0)