Hi there I was just play around with this electron-vue repo to test some other simple vuejs app that I was testing. Everything is fine with npm run dev but when I compile the apps using npm run build the app just display a blank page, I had no errors during building, I'm on linux, ubuntu 14.04.
Hope you can help me, I'm new in the webpack world.
@paulvl
Were you able to solve the issue you were having?
@SimulatedGREG yes, I was viewing a blank page because vue-router mode was set to 'history', removed that and everything worked like a charm.
Ahh. I think this is worth nothing in the Docs.
try this :
function createWindow () {
mainWindow = new BrowserWindow({
//...
})
// use this to open dev tools manualy to debug
mainWindow.webContents.openDevTools()
//...
}
Strange, but the history mode was the reason for this issue for me, too.
EDIT: Additionally to the blank page there was no "not file found" error, there was no error in the console. And the network tab said the files were loaded (but they all had 0 kb size).
Most helpful comment
@SimulatedGREG yes, I was viewing a blank page because vue-router mode was set to 'history', removed that and everything worked like a charm.