From e3b1cdde92f7cadab34d6fd4cd77d8273448f940 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: Sun, 30 Jan 2022 11:13:30 +0800 Subject: [PATCH] fix: watch --- scripts/watch.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/watch.mjs b/scripts/watch.mjs index 49db8e1..f2fd31c 100644 --- a/scripts/watch.mjs +++ b/scripts/watch.mjs @@ -25,6 +25,7 @@ function watchMain() { root: join(__dirname, '../src/main'), build: { outDir: '../../dist/main', + watch: true, }, plugins: [{ name: 'electron-main-watcher', @@ -48,6 +49,7 @@ function watchPreload(server) { root: join(__dirname, '../src/preload'), build: { outDir: '../../dist/preload', + watch: true, }, plugins: [{ name: 'electron-preload-watcher',