I was previously doing:
workerWindow.loadURL(`file://${__dirname}/../worker.html?id=${i}`);
But this no longer appears to work now I'm also using webpack.
I get
Not allowed to load local resource:
I'd like to use loadURL in a way which will work both during testing and production.
Any pointers would be most appreciated!