diff --git a/package.json b/package.json index b8cff3662..a6085385c 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",