summaryrefslogtreecommitdiffhomepage
path: root/gui/scripts
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-02-27 16:08:01 +0100
committerAndrej Mihajlov <and@mullvad.net>2019-03-01 16:22:24 +0100
commitddccc2beafa9ec5305ce2746d3eb095d3bd21b6c (patch)
tree645bf5d10836595b9d7f04e4ea7685fb7c71be9c /gui/scripts
parent3f5426c08aedcb88e131b0be94308ccb342fc1d4 (diff)
downloadmullvadvpn-ddccc2beafa9ec5305ce2746d3eb095d3bd21b6c.tar.xz
mullvadvpn-ddccc2beafa9ec5305ce2746d3eb095d3bd21b6c.zip
Update relative paths
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')));