diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index 519ac206..4f1d4dbd 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -267,7 +267,7 @@ pub fn serve( let should_watch = match mode { WatchMode::Required => true, WatchMode::Optional => watch_path.exists(), - WatchMode::Condition(b) => b, + WatchMode::Condition(b) => b && watch_path.exists(), }; if should_watch { watcher