Disclaimer: as per electron-boilerplate
Make webpack bundle your worker code. I’ll skip the entire code here because it’s too long.
Remeber the output path
Make electron-builder copy your worker bundle file .
This will place your worker bunlde file inside
Adjust worker path and working directory for
const workerPath =