diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-10-05 13:34:14 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-11-03 13:04:37 +0100 |
commit | 85e4dd7370eae97ae367e596aa6a10ba42fd4b7c (patch) | |
tree | 23e739edbed24a62f842c1a3ebc1d9cb706ea8b7 /commands/hugo.go | |
parent | 3089fc0ba171be14670b19439bc2eab6b077b6c3 (diff) |
Make js.Build fully support modules
Fixes #7816
Fixes #7777
Fixes #7916
Diffstat (limited to 'commands/hugo.go')
-rw-r--r-- | commands/hugo.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 058f1ec7c..58f33b775 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -984,9 +984,11 @@ func (c *commandeer) handleEvents(watcher *watcher.Batcher, staticEvents := []fsnotify.Event{} dynamicEvents := []fsnotify.Event{} - // Special handling for symbolic links inside /content. filtered := []fsnotify.Event{} for _, ev := range evs { + if c.hugo().ShouldSkipFileChangeEvent(ev) { + continue + } // Check the most specific first, i.e. files. contentMapped := c.hugo().ContentChanges.GetSymbolicLinkMappings(ev.Name) if len(contentMapped) > 0 { |