docs: update

This commit is contained in:
草鞋没号 committed 2022-10-18 16:36:56 +08:00
1 parent d08921d6f6
commit 17142a9ec8
1 file changed
+8 -3
+8 -3
View File
@@ -54,9 +54,14 @@ npm create electron-vite
```diff
# vite.config.ts
electron({
- renderer: {}
})
export default {
plugins: [
- // Use Node.js API in the Renderer-process
- renderer({
- nodeIntegration: true,
- }),
],
}
```
## FAQ