In my webpack project, I create a child process using *.fork("./dist/worker.js") from my main app:
*.fork("./dist/worker.js")
this.worker = child_process.fork(\'.