summaryrefslogtreecommitdiffstats
path: root/commands/hugo.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/hugo.go')
-rw-r--r--commands/hugo.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index 94111e92d..c61e64185 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -861,8 +861,13 @@ func (c *commandeer) newWatcher(pollIntervalStr string, dirList ...string) (*wat
return nil, err
}
+ spec := c.hugo().Deps.SourceSpec
+
for _, d := range dirList {
if d != "" {
+ if spec.IgnoreFile(d) {
+ continue
+ }
_ = watcher.Add(d)
}
}