From 26b8ec66ac6b471409480f4e8fd4a0f3d4650335 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Mon, 14 Dec 2020 22:22:58 +0100 Subject: [PATCH] Only watch sass if folder exists Closes #1249 --- src/cmd/serve.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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