We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebe124a commit 6b304c2Copy full SHA for 6b304c2
lib/grunt/utils.js
@@ -190,7 +190,7 @@ module.exports = {
190
shell.exec(
191
'java ' +
192
this.java32flags() + ' ' +
193
- '-Xmx2g ' +
+ this.memoryRequirement() + ' ' +
194
'-cp bower_components/closure-compiler/compiler.jar' + classPathSep +
195
'bower_components/ng-closure-runner/ngcompiler.jar ' +
196
'org.angularjs.closurerunner.NgClosureRunner ' +
@@ -217,6 +217,10 @@ module.exports = {
217
}.bind(this));
218
},
219
220
+ memoryRequirement: function() {
221
+ return (process.platform === 'win32') ? '' : '-Xmx2g';
222
+ },
223
+
224
225
//returns the 32-bit mode force flags for java compiler if supported, this makes the build much faster
226
java32flags: function(){
0 commit comments