While the preload script loads ok when developing yarn start
It does not on builds yarn make
Unable to load preload script:
const mainWindow = new BrowserWindow({
width: 1800,
height: 1600,
webPreferences: {
nodeIntegration: true,
sandbox: false,
preload: path.join(app.getAppPath(), 'preload.js')
},
})
Is there any evident reason for that?