fix(build): 处理构建报错以及构建的APP白屏

This commit is contained in:
李霖 committed 2022-07-01 16:30:15 +08:00
1 parent e51eccb41b
commit 815a97250b
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -26,6 +26,7 @@ let win: BrowserWindow | null = null
// Here, you can also use other preload
const preload = join(__dirname, '../preload/index.js')
const url = `http://${process.env.VITE_DEV_SERVER_HOST}:${process.env.VITE_DEV_SERVER_PORT}`
const indexHtml = 'dist/index.html'
async function createWindow() {
win = new BrowserWindow({