How to bundle your webpack tasks
github.com
github.com
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.
https://medium.com/@tobiasuhlig/using-js-libraries-inside-a-...