endel / increase-memory-limit

Increase memory limit for local node binaries ("max-old-space-size")
http://npmjs.com/package/increase-memory-limit
MIT License
269 stars 26 forks source link

problem on windows / gulp #7

Closed endel closed 7 years ago

endel commented 7 years ago

Reported by Monika Pienkos through email:

Hi, your module resolves “node.exe” to e.g. "%~dp0\node --max-old-space-size=10240.exe" "%~dp0..\gulp\bin\gulp.js" %* on Windows systems.

endel commented 7 years ago

Reply from Monika:

I was trying to patch it locally.

patchedContents += line.replace(/node(\.exe)?\b(?: \-\-max\-old\-space\-size\=[0-9]+)?/, `node$1 --max-old-space-size=${maxOldSpaceSice}`) + "\n";

would at least preserve the .exe part correctly. I think it should do the trick at least in my case.