docs: update

This commit is contained in:
草鞋没号 2023-04-17 10:48:37 +08:00
parent 4edbadf077
commit 66e4eee2c0
2 changed files with 6 additions and 3 deletions

View File

@ -49,6 +49,7 @@ Familiar React application structure, just with `electron` folder on the top :wi
└── src Renderer source code, your React application └── src Renderer source code, your React application
``` ```
<!--
## 🚨 Be aware ## 🚨 Be aware
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.
@ -69,6 +70,7 @@ export default {
], ],
} }
``` ```
-->
## 🔧 Additional features ## 🔧 Additional features
@ -77,5 +79,5 @@ export default {
## ❔ FAQ ## ❔ FAQ
- [dependencies vs devDependencies](https://github.com/electron-vite/vite-plugin-electron-renderer#dependencies-vs-devdependencies)
- [C/C++ addons, Node.js modules - Pre-Bundling](https://github.com/electron-vite/vite-plugin-electron-renderer#dependency-pre-bundling) - [C/C++ addons, Node.js modules - Pre-Bundling](https://github.com/electron-vite/vite-plugin-electron-renderer#dependency-pre-bundling)
- [dependencies vs devDependencies](https://github.com/electron-vite/vite-plugin-electron-renderer#dependencies-vs-devdependencies)

View File

@ -47,7 +47,7 @@ npm create electron-vite
└── src 渲染进程源码、React代码 └── src 渲染进程源码、React代码
``` ```
<!--
## 🚨 这需要留神 ## 🚨 这需要留神
默认情况下,该模板在渲染进程中集成了 Node.js如果你不需要它你只需要删除下面的选项. [因为它会修改 Vite 默认的配置](https://github.com/electron-vite/vite-plugin-electron-renderer#config-presets-opinionated). 默认情况下,该模板在渲染进程中集成了 Node.js如果你不需要它你只需要删除下面的选项. [因为它会修改 Vite 默认的配置](https://github.com/electron-vite/vite-plugin-electron-renderer#config-presets-opinionated).
@ -66,6 +66,7 @@ export default {
], ],
} }
``` ```
-->
## 🔧 额外的功能 ## 🔧 额外的功能
@ -74,8 +75,8 @@ export default {
## ❔ FAQ ## ❔ FAQ
- [dependencies vs devDependencies](https://github.com/electron-vite/vite-plugin-electron-renderer#dependencies-vs-devdependencies)
- [C/C++ addons, Node.js modules - Pre-Bundling](https://github.com/electron-vite/vite-plugin-electron-renderer#dependency-pre-bundling) - [C/C++ addons, Node.js modules - Pre-Bundling](https://github.com/electron-vite/vite-plugin-electron-renderer#dependency-pre-bundling)
- [dependencies vs devDependencies](https://github.com/electron-vite/vite-plugin-electron-renderer#dependencies-vs-devdependencies)
## 🍵 🍰 🍣 🍟 ## 🍵 🍰 🍣 🍟