mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
@@ -662,7 +662,7 @@ func buildSites(watching bool) (err error) {
|
|||||||
|
|
||||||
func rebuildSites(events []fsnotify.Event) error {
|
func rebuildSites(events []fsnotify.Event) error {
|
||||||
initSites()
|
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.
|
// NewWatcher creates a new watcher to watch filesystem events.
|
||||||
|
Reference in New Issue
Block a user