Browse Source

chore: 解决node默认内存不够的问题

master
iapyang 4 years ago
parent
commit
70efa1a17c
  1. 4
      package.json

4
package.json

@ -61,8 +61,8 @@
"webpack-merge": "4.2.1" "webpack-merge": "4.2.1"
}, },
"scripts": { "scripts": {
"webpack:dev": "webpack-dev-server -p --progress --host 0.0.0.0 --config=webpack/webpack.dev.js --mode development", "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": "webpack -p --progress --config=webpack/webpack.prod.js --mode production", "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", "start": "node server.js",
"build": "npm run webpack:prod && tsc", "build": "npm run webpack:prod && tsc",
"postbuild": "node ./lib/postbuild/postbuild.js", "postbuild": "node ./lib/postbuild/postbuild.js",

Loading…
Cancel
Save