Disclaimer: as per electron-boilerplate
Make webpack bundle your worker code. I’ll skip the entire code here because it’s too long: https://gist.github.com/gsongsong/02b93857e83b770554017c0566510371
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 =