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). 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 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" },