Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tools: Fix webpack wrapper logic for finding config file to watch.

Tim Abbott45cd979d4609
diff --git a/tools/webpack b/tools/webpack
index df3c6925eff..18891489caf 100755
--- a/tools/webpack
+++ b/tools/webpack
@@ -71,8 +71,8 @@ def build_for_dev_server(host: str, port: str, minify: bool, disable_host_check:
watch_manager = pyinotify.WatchManager()
event_notifier = pyinotify.Notifier(watch_manager, WebpackConfigFileChangeHandler())
- for file in ['webpack.config.ts', 'webpack.assets.json']:
- filepath = os.path.join(os.path.dirname(__file__), file)
+ # We did a chdir to the root of the Zulip checkout above.
+ for filepath in ['webpack.config.ts', 'tools/webpack.assets.json']:
watch_manager.add_watch(filepath, pyinotify.IN_MODIFY)
event_notifier.loop()
finally: