mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-02-26 04:40:10 +08:00
fix(build): 处理构建报错以及构建的APP白屏
This commit is contained in:
parent
e51eccb41b
commit
815a97250b
@ -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({
|
||||
|
@ -18,7 +18,7 @@
|
||||
"electron": "^19.0.3",
|
||||
"electron-builder": "^23.0.3",
|
||||
"typescript": "^4.7.3",
|
||||
"vite": "^3.0.0-beta.5",
|
||||
"vite": "^2.9.13",
|
||||
"vite-plugin-electron": "^0.6.1",
|
||||
"vite-plugin-resolve": "^2.1.2",
|
||||
"vue": "^3.2.36",
|
||||
|
Loading…
x
Reference in New Issue
Block a user