docs: correct link

This commit is contained in:
草鞋没号 2022-12-09 09:12:30 +08:00
parent 45f9205eac
commit 3953b84329
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ Familiar React application structure, just with `electron` folder on the top :wi
This template integrates Node.js API to the renderer process by default. If you want to follow **Electron Security Concerns** you might want to disable this feature. You will have to expose needed API by yourself. This template integrates Node.js API to the renderer process by default. If you want to follow **Electron Security Concerns** you might want to disable this feature. You will have to expose needed API by yourself.
To get started, remove the option as shown below. This will [modify the Vite configuration and disable this feature](https://github.com/electron-vite/vite-plugin-electron/tree/main/packages/electron-renderer#config-presets-opinionated). To get started, remove the option as shown below. This will [modify the Vite configuration and disable this feature](https://github.com/electron-vite/vite-plugin-electron-renderer#config-presets-opinionated).
```diff ```diff
# vite.config.ts # vite.config.ts

View File

@ -55,7 +55,7 @@ npm create electron-vite
## 🚨 这需要留神 ## 🚨 这需要留神
默认情况下,该模板在渲染进程中集成了 Node.js如果你不需要它你只需要删除下面的选项. [因为它会修改 Vite 默认的配置](https://github.com/electron-vite/vite-plugin-electron/tree/main/packages/electron-renderer#config-presets-opinionated). 默认情况下,该模板在渲染进程中集成了 Node.js如果你不需要它你只需要删除下面的选项. [因为它会修改 Vite 默认的配置](https://github.com/electron-vite/vite-plugin-electron-renderer#config-presets-opinionated).
```diff ```diff
# vite.config.ts # vite.config.ts