fix(electron): auto-reload for static assets

This commit is contained in:
Elian Doran 2025-02-08 01:07:27 +02:00
parent 9ff8b53ae6
commit 45ab9d4395
No known key found for this signature in database

View File

@ -17,7 +17,7 @@ if (isDev) {
const debounce = (await import("debounce")).default;
const debouncedReloadFrontend = debounce(() => reloadFrontend("source code change"), 200);
chokidar
.watch(isElectron ? "dist/src/public" : "src/public")
.watch("src/public")
.on("add", debouncedReloadFrontend)
.on("change", debouncedReloadFrontend)
.on("unlink", debouncedReloadFrontend);