Merge pull request #202 from electron-vite/keep-love-220721

Keep love 220721
This commit is contained in:
草鞋没号 2022-07-24 07:18:14 +08:00 committed by GitHub
commit 20674739ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 10 deletions

View File

@ -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).

View File

@ -1,8 +1 @@
declare namespace NodeJS {
interface ProcessEnv {
NODE_ENV: 'development' | 'production'
readonly VITE_DEV_SERVER_HOST: string
readonly VITE_DEV_SERVER_PORT: string
}
}
/// <reference types="vite-plugin-electron/electron-env" />

View File

@ -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"
},