hugoblib: Fix "adding a bundle" in server mode
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 15 Aug 2018 18:41:19 +0000 (20:41 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 16 Aug 2018 10:54:59 +0000 (12:54 +0200)
commitd139a037d98e4b388687eecb7831758412247c58
treee1057555939aec646f859cdc7247701c4fc00438
parent0a88741fe85f4f7aedc02ed748dfeb8ccc073dbf
hugoblib: Fix "adding a bundle" in server mode

Before this commit, the live reload logic in `hugo server` got confused when you dropped a new bundle into the project while the server was running. The workaround was to restart the server.

This commit fixes the "live reload bundle detection" in server mode, and also makes sure that the bundle headers are always processed first.

Fixes #5075
hugolib/hugo_sites.go
hugolib/page_bundler_capture.go