Skip to content

Commit c6728ce

Browse files
committed
chore(grunt): reduce JVM heap size hint on win
The current grunt scripts require at least 2GB of heap space to be allocated by the JVM, even though this is not needed to actually complete the build. Adding 64-bit to the mix, this means grunt package fails on machines without a whole 4GB of RAM free. Closes angular#4595
1 parent 3662140 commit c6728ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grunt/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ module.exports = {
172172
shell.exec(
173173
'java ' +
174174
this.java32flags() + ' ' +
175-
'-Xmx2g ' +
175+
'-Xmx512m ' +
176176
'-cp bower_components/closure-compiler/compiler.jar' + classPathSep +
177177
'bower_components/ng-closure-runner/ngcompiler.jar ' +
178178
'org.angularjs.closurerunner.NgClosureRunner ' +

0 commit comments

Comments
 (0)