juanfran / gulp-multi-process

Run gulp tasks in separate CPU processes
25 stars 11 forks source link

feat(create-worker): support exec arguments #7

Closed SebastianBogado closed 6 years ago

SebastianBogado commented 6 years ago

Passes down node-specific command line options to the spawned processes.

Example use case: need to increase the heap size so I run:

$ gulp --max_old_space_size=2048 sometask

Note: gulp detects the node flag and respawns the process. Would be like running:

$ node --max_old_space_size=2048 ./node_modules/.bin/gulp sometask

Those flags appear as an array at process.execArgv, which are passed down to the children processes in this PR.

SebastianBogado commented 6 years ago

@juanfran I've just run the tests locally with node v0.12.18 and everything was OK. Any clue?

Thanks for the package btw!

juanfran commented 6 years ago

I restarted the test and now it works. Thank for the PR!