Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: add ability to pass node options #91

Closed
metoule opened this issue Jul 23, 2019 · 2 comments
Closed

Feature request: add ability to pass node options #91

metoule opened this issue Jul 23, 2019 · 2 comments
Assignees

Comments

@metoule
Copy link

metoule commented Jul 23, 2019

Could you add a way to pass some arguments to the node executable, the same way it's possible to add webpack cli arguments? I have a very large webpack project that sometimes fail due to the following error:

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

It's a known issue (cf webpack/webpack#6389), and one possible workaround is to use the node options --max_old_space_size=4096 to increase the heap size. It would be awesome if I could pass those options directly with your extension.

For now, I added an environment variable NODE_OPTIONS to my build pipeline, but I'd rather set this for webpack only.

@jkanczler
Copy link
Member

jkanczler commented Aug 13, 2019

Added support for it. I'm closing this for now. If something is wrong, please re-open it.

@metoule
Copy link
Author

metoule commented Aug 13, 2019

It's working perfectly, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants