mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
506e131f28
commit
d18a8cbe15
1 changed files with 1 additions and 1 deletions
|
@ -662,7 +662,7 @@ func buildSites(watching bool) (err error) {
|
|||
|
||||
func rebuildSites(events []fsnotify.Event) error {
|
||||
initSites()
|
||||
return Hugo.Rebuild(hugolib.BuildCfg{PrintStats: true}, events...)
|
||||
return Hugo.Rebuild(hugolib.BuildCfg{PrintStats: true, Watching: true}, events...)
|
||||
}
|
||||
|
||||
// NewWatcher creates a new watcher to watch filesystem events.
|
||||
|
|
Loading…
Reference in a new issue