mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 03:46:35 +08:00
Merge pull request #202 from electron-vite/keep-love-220721
Keep love 220721
This commit is contained in:
commit
20674739ef
@ -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).
|
||||
|
||||
|
9
electron/electron-env.d.ts
vendored
9
electron/electron-env.d.ts
vendored
@ -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" />
|
@ -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"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user