1
votes

I have switched from Uglify2 to Uglify3 and I got an error about stack size exceeded. Google pointed me to call node with --stack-size=value argument. But how can I do it with a gulp script?

If I had a normal script I would do: $ node --stack-size=2048 script.js

I have a gulp task like: $ gulp build

How can I pass a parameter to node then?

1

1 Answers

1
votes

Ok, I got it

$ node --stack-size=10000 ./node_modules/.bin/gulp build