Merge pull request #176 from Muzlin/lilin-dev

fix(build): can't start after build
This commit is contained in:
younglei 2022-07-01 17:15:42 +08:00 committed by GitHub
commit 5241ef8e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = join(ROOT_PATH.dist, 'index.html')
async function createWindow() {
win = new BrowserWindow({