mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-03 10:50:17 -05:00
feat(electron): support live reload in dist/src/public
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ if (env.isDev()) {
|
||||
const debounce = (await import("debounce")).default;
|
||||
const debouncedReloadFrontend = debounce(() => reloadFrontend("source code change"), 200);
|
||||
chokidar
|
||||
.watch('src/public')
|
||||
.watch(utils.isElectron() ? 'dist/src/public' : 'src/public')
|
||||
.on('add', debouncedReloadFrontend)
|
||||
.on('change', debouncedReloadFrontend)
|
||||
.on('unlink', debouncedReloadFrontend);
|
||||
|
||||
Reference in New Issue
Block a user