From e657454cd71a1e26fdab32a1cce514e04afa4d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Thu, 21 Jul 2022 09:34:40 +0800 Subject: [PATCH 1/3] chore(deps): bump vite-plugin-electron to v0.8.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 91b8904..8963efc 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "electron-builder": "^23.1.0", "typescript": "^4.7.4", "vite": "^2.9.13", - "vite-plugin-electron": "^0.8.0", + "vite-plugin-electron": "^0.8.1", "vue": "^3.2.37", "vue-tsc": "^0.38.3" }, From 2cbc705f893d805583354efe0f42542e17270156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Thu, 21 Jul 2022 09:36:35 +0800 Subject: [PATCH 2/3] docs: update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fcf5932..26a1a30 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ npm create electron-vite └── vite.config.ts ``` -## 🚨 +## 🚨 Be aware By default, this template integrates Node.js in the Renderer process. If you don't need it, you just remove the option below. [Because it will modify the default config of Vite](https://github.com/electron-vite/vite-plugin-electron/tree/main/packages/electron-renderer#config-presets-opinionated). From e255257d4a4ed3198006b4e3772b700bc7d73b36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Thu, 21 Jul 2022 09:51:30 +0800 Subject: [PATCH 3/3] chore: update env --- electron/electron-env.d.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/electron/electron-env.d.ts b/electron/electron-env.d.ts index b435aec..6acc9e1 100644 --- a/electron/electron-env.d.ts +++ b/electron/electron-env.d.ts @@ -1,8 +1 @@ - -declare namespace NodeJS { - interface ProcessEnv { - NODE_ENV: 'development' | 'production' - readonly VITE_DEV_SERVER_HOST: string - readonly VITE_DEV_SERVER_PORT: string - } -} +/// \ No newline at end of file