mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 18:02:28 +00:00
parent
bb232a351a
commit
8ca7052528
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue