aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--commands/hugobuilder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/hugobuilder.go b/commands/hugobuilder.go
index 95129018f..51493938d 100644
--- a/commands/hugobuilder.go
+++ b/commands/hugobuilder.go
@@ -966,7 +966,7 @@ func (c *hugoBuilder) handleEvents(watcher *watcher.Batcher,
pathToRefresh := h.PathSpec.RelURL(paths.ToSlashTrimLeading(otherChanges[0]), false)
lrl.Logf("refreshing %q", pathToRefresh)
livereload.RefreshPath(pathToRefresh)
- } else if len(cssChanges) == 0 {
+ } else if len(cssChanges) == 0 || len(otherChanges) > 1 {
lrl.Logf("force refresh")
livereload.ForceRefresh()
}