4 ms·
For the node pros among us this might be trivial, but i would like to highlight one way anyway. Since it is more like a personal trait if you prefer adding pro
by tobiu 6y ago
For the node pros among us this might be trivial, but i would like to highlight one way anyway.
Since it is more like a personal trait if you prefer adding program options on the command line or have a visual interface to select them, i added both ways.
I am using childProcess.spawnSync() instead of spawn() to keep the webpack based output logs reasonable. spawn() would be a bit faster, so we could add a debug mode to not use it.
For this use case the goal is to keep different realms (workers) separate to allow webpack to handle the chunk splitting in a reasonable way in the future.