mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 11:56:36 +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
|
└── 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).
|
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 @@
|
|||||||
|
/// <reference types="vite-plugin-electron/electron-env" />
|
||||||
declare namespace NodeJS {
|
|
||||||
interface ProcessEnv {
|
|
||||||
NODE_ENV: 'development' | 'production'
|
|
||||||
readonly VITE_DEV_SERVER_HOST: string
|
|
||||||
readonly VITE_DEV_SERVER_PORT: string
|
|
||||||
}
|
|
||||||
}
|
|
@ -19,7 +19,7 @@
|
|||||||
"electron-builder": "^23.1.0",
|
"electron-builder": "^23.1.0",
|
||||||
"typescript": "^4.7.4",
|
"typescript": "^4.7.4",
|
||||||
"vite": "^2.9.13",
|
"vite": "^2.9.13",
|
||||||
"vite-plugin-electron": "^0.8.0",
|
"vite-plugin-electron": "^0.8.1",
|
||||||
"vue": "^3.2.37",
|
"vue": "^3.2.37",
|
||||||
"vue-tsc": "^0.38.3"
|
"vue-tsc": "^0.38.3"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user