From 74d81199e61d6eaeb35ba28eda383ee3780f5cf3 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:14:45 +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 ef14d8e..7b4e68d 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',