From 70efa1a17cd75df0cf4d47062271e74e879c6704 Mon Sep 17 00:00:00 2001 From: iapyang Date: Thu, 9 Jul 2020 10:31:17 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=A7=A3=E5=86=B3node=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=86=85=E5=AD=98=E4=B8=8D=E5=A4=9F=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b8cff36625..a6085385c6 100644 --- a/package.json +++ b/package.json @@ -61,8 +61,8 @@ "webpack-merge": "4.2.1" }, "scripts": { - "webpack:dev": "webpack-dev-server -p --progress --host 0.0.0.0 --config=webpack/webpack.dev.js --mode development", - "webpack:prod": "webpack -p --progress --config=webpack/webpack.prod.js --mode production", + "webpack:dev": "node --max_old_space_size=4096 ./node_modules/.bin/webpack-dev-server -p --progress --host 0.0.0.0 --config=webpack/webpack.dev.js --mode development", + "webpack:prod": "node --max_old_space_size=4096 ./node_modules/.bin/webpack -p --progress --config=webpack/webpack.prod.js --mode production", "start": "node server.js", "build": "npm run webpack:prod && tsc", "postbuild": "node ./lib/postbuild/postbuild.js",