From a24223d22d53006dbade031285d501ffc5748eb5 Mon Sep 17 00:00:00 2001 From: younglei Date: Wed, 29 Jun 2022 23:42:38 +0800 Subject: [PATCH] chore: bump deps --- electron/main/index.ts | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index 5df8c29..7101c53 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -17,8 +17,7 @@ process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true' let win: BrowserWindow | null = null // Here, you can also use other preload const preload = join(__dirname, '../preload/index.js') -// 🚧 Use ['ENV_NAME'] avoid vite:define plugin -const url = `http://${process.env['VITE_DEV_SERVER_HOST']}:${process.env['VITE_DEV_SERVER_PORT']}` +const url = `http://${process.env.VITE_DEV_SERVER_HOST}:${process.env.VITE_DEV_SERVER_PORT}` async function createWindow() { win = new BrowserWindow({ diff --git a/package.json b/package.json index c419e4c..31f7a35 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "electron": "^19.0.3", "electron-builder": "^23.0.3", "typescript": "^4.7.3", - "vite": "^2.9.9", + "vite": "^3.0.0-beta.5", "vite-plugin-electron": "^0.6.1", "vite-plugin-resolve": "^2.1.2", "vue": "^3.2.36",