Skip to content

Commit

Permalink
chore: reduce memory usage of webpack
Browse files Browse the repository at this point in the history
webpack for build-min is called with --max_old_space_size=2048
which seems to make travis work again, but we don't know
exactly what this flag is doing, and what was the default
value that we were using.

nodejs/node#7937

This commit also clean some vestigial code from .travis.yaml that
is not needed now that we test inside the docker container.
  • Loading branch information
tartavull authored and william-silversmith committed Jul 14, 2017
1 parent 221b50d commit cbfb01b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 23 deletions.
10 changes: 0 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,9 @@ dist: trusty
sudo: required
node_js:
- 7.3.0
julia:
0.5.1
cache:
directories:
- node_modules
addons:
apt:
packages:
- mesa-utils
- xvfb
- libgl1-mesa-dri
- libglapi-mesa
- libosmesa6
before_install:
- openssl aes-256-cbc -K $encrypted_5d2bae8122b8_key -iv $encrypted_5d2bae8122b8_iv
-in credentials.tar.gz.enc -out credentials.tar.gz -d
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
},
"scripts": {
"generate-code": "node ./config/generate_code.js",
"build-min": "webpack --config ./config/webpack.min.js --display-modules",
"build": "webpack --config ./config/webpack.config.js --display-modules",
"build-key_name_logger": "webpack --config ./config/webpack.key_name_logger.js",
"build:watch": "webpack --config ./config/webpack.config.js --watch",
"build-min": "node --max_old_space_size=2048 ./node_modules/webpack/bin/webpack.js --config ./config/webpack.min.js --display-modules",
"build": "node --max_old_space_size=2048 --config ./config/webpack.config.js --display-modules",
"build-key_name_logger": "node --max_old_space_size=2048 --config ./config/webpack.key_name_logger.js",
"build:watch": "node --max_old_space_size=2048 --config ./config/webpack.config.js --watch",
"dev-server": "webpack-dev-server --config ./config/webpack.config.js",
"test": "karma start ./config/karma.conf.js --single-run",
"test:watch": "karma start ./config/karma.conf.js --no-single-run",
Expand Down Expand Up @@ -70,19 +70,19 @@
"gl-matrix": "^2.3.2",
"glsl-editor": "^1.0.0",
"glsl-strip-comments-loader": "^1.0.0",
"html-webpack-plugin": "^2.28.0",
"html-webpack-plugin": "^2.29.0",
"json-loader": "^0.5.4",
"lodash": "^4.13.1",
"nifti-reader-js": "^0.5.3",
"pako": "^1.0.1",
"raw-loader": "^0.5.1",
"signals": "^1.0.0",
"sockjs-client": "^1.1.2",
"sortablejs": "^1.5.0-rc1",
"style-loader": "^0.13.0",
"raw-loader": "0.5.1",
"signals": "1.0.0",
"sockjs-client": "1.1.2",
"sortablejs": "1.5.0-rc1",
"style-loader": "0.13.0",
"ts-loader": "1.3.2",
"typescript": "^2.1.4",
"webpack": "^2.2.0-rc.3",
"webpack-closure-compiler": "^2.1.2"
"typescript": "2.3.4",
"webpack": "2.2.0-rc.3",
"webpack-closure-compiler": "2.1.2"
}
}

0 comments on commit cbfb01b

Please sign in to comment.