mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
@@ -861,8 +861,13 @@ func (c *commandeer) newWatcher(pollIntervalStr string, dirList ...string) (*wat
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spec := c.hugo().Deps.SourceSpec
|
||||||
|
|
||||||
for _, d := range dirList {
|
for _, d := range dirList {
|
||||||
if d != "" {
|
if d != "" {
|
||||||
|
if spec.IgnoreFile(d) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
_ = watcher.Add(d)
|
_ = watcher.Add(d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user