[Vuejs]-Electron production build – ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed

0👍

After a lot of research and debug I’ve discovered two problems in my code. The first one is that process.env.IS_TEST is not defined, I’ve removed that line from my code. No problem occur in electron:serve mode. The main problem with the blank screen in production instead, was because win.loadURL(path.join(__dirname, 'index.html')) was trying to load the files ufing the file: protocol instead of the custom one registered from the app.
I’ve reverted back to the original code and used the win.loadURL('app://./index.html')
After this little modification the app seems working fine also in production.

Leave a comment