mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
79d517d86c
commit
4a2a8afff2
1 changed files with 2 additions and 1 deletions
|
@ -304,7 +304,7 @@ func (c *commandeer) loadConfig(mustHaveConfigFile, running bool) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set some commonly used flags
|
// Set some commonly used flags
|
||||||
c.doLiveReload = !c.h.buildWatch && !c.Cfg.GetBool("disableLiveReload")
|
c.doLiveReload = running && !c.Cfg.GetBool("disableLiveReload")
|
||||||
c.fastRenderMode = c.doLiveReload && !c.Cfg.GetBool("disableFastRender")
|
c.fastRenderMode = c.doLiveReload && !c.Cfg.GetBool("disableFastRender")
|
||||||
c.showErrorInBrowser = c.doLiveReload && !c.Cfg.GetBool("disableBrowserError")
|
c.showErrorInBrowser = c.doLiveReload && !c.Cfg.GetBool("disableBrowserError")
|
||||||
|
|
||||||
|
@ -351,6 +351,7 @@ func (c *commandeer) loadConfig(mustHaveConfigFile, running bool) error {
|
||||||
// to make that decision.
|
// to make that decision.
|
||||||
irrelevantRe: regexp.MustCompile(`\.map$`),
|
irrelevantRe: regexp.MustCompile(`\.map$`),
|
||||||
}
|
}
|
||||||
|
|
||||||
changeDetector.PrepareNew()
|
changeDetector.PrepareNew()
|
||||||
fs.Destination = hugofs.NewHashingFs(fs.Destination, changeDetector)
|
fs.Destination = hugofs.NewHashingFs(fs.Destination, changeDetector)
|
||||||
c.changeDetector = changeDetector
|
c.changeDetector = changeDetector
|
||||||
|
|
Loading…
Reference in a new issue