summaryrefslogtreecommitdiffhomepage
path: root/gui/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'gui/scripts')
-rw-r--r--gui/scripts/serve.js17
1 files changed, 4 insertions, 13 deletions
diff --git a/gui/scripts/serve.js b/gui/scripts/serve.js
index e2b91813dc..7629628aa2 100644
--- a/gui/scripts/serve.js
+++ b/gui/scripts/serve.js
@@ -67,9 +67,7 @@ function startBrowserSync() {
child.kill();
});
- bsync
- .watch(['build/src/renderer/**/*', path.resolve('../components/build/**')])
- .on('change', bsync.reload);
+ bsync.watch(['build/src/renderer/**/*']).on('change', bsync.reload);
},
);
}
@@ -78,15 +76,8 @@ function prepareWatchArguments(projectPath) {
return ['--noClear', '--sourceMap', '--project', projectPath];
}
-const appWatcher = new TscWatchClient();
-const componentsWatcher = new TscWatchClient();
-
-componentsWatcher.on('first_success', () => {
- appWatcher.start(...prepareWatchArguments(path.resolve(__dirname, '..')));
-});
-
-appWatcher.on('first_success', () => {
+const watch = new TscWatchClient();
+watch.start(...prepareWatchArguments(path.resolve(__dirname, '..')));
+watch.on('first_success', () => {
startBrowserSync();
});
-
-componentsWatcher.start(...prepareWatchArguments(path.resolve(__dirname, '../../components')));