From 85e4dd7370eae97ae367e596aa6a10ba42fd4b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 5 Oct 2020 13:34:14 +0200 Subject: Make js.Build fully support modules Fixes #7816 Fixes #7777 Fixes #7916 --- commands/hugo.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'commands') 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 { -- cgit v1.2.3