Skip to content

Commit

Permalink
Raise the RAM limit for "npm run analyze-bundles" (Automattic#15250)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanReyLop authored Jun 20, 2017
1 parent 692a81d commit 32b7181
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 138,158 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"npm": "3.10.10"
},
"scripts": {
"preanalyze-bundles": "cross-env WEBPACK_OUTPUT_JSON=1 CALYPSO_ENV=production npm run -s build",
"preanalyze-bundles": "cross-env WEBPACK_OUTPUT_JSON=1 CALYPSO_ENV=production NODE_ARGS=\"--max_old_space_size=8192\" npm run -s build",
"analyze-bundles": "webpack-bundle-analyzer stats.json public -p 9898",
"autoprefixer": "postcss -r --use autoprefixer --autoprefixer.browsers \"last 2 versions, > 1%, Safari >= 8, iOS >= 8, Firefox ESR, Opera 12.1\"",
"prebuild": "npm run -s install-if-needed",
Expand All @@ -179,7 +179,7 @@
"build-docker": "docker build -t wp-calypso .",
"prebuild-server": "mkdirp build",
"build-server": "npm run -s env -- webpack --display-error-details --config webpack.config.node.js",
"bundle": "npm run -s env -- node server/bundler/bin/bundler.js",
"bundle": "npm run -s env -- cross-env node $NODE_ARGS server/bundler/bin/bundler.js",
"clean": "npm run -s clean:build && npm run -s clean:devdocs && npm run -s clean:public",
"clean:build": "npm run -s rm -- build && npm run -s rm -- server/bundler .json && npm run -s rm -- .babel-cache",
"clean:devdocs": "npm run -s rm -- server/devdocs/search-index.js && npm run -s rm -- server/devdocs/proptypes-index.json && npm run -s rm -- server/devdocs/components-usage-stats.json",
Expand Down
Loading

0 comments on commit 32b7181

Please sign in to comment.