From 17142a9ec8a6b1978160bcc0cfec4279eda48a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Tue, 18 Oct 2022 16:36:56 +0800 Subject: [PATCH] docs: update --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0fa65a2..bb218d5 100644 --- a/README.md +++ b/README.md @@ -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