aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/hugo_sites_build.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-12-23 09:26:23 +0100
committerBjørn Erik Pedersen <[email protected]>2020-12-30 17:32:25 +0100
commitcea157402365f34a69882110a4208999728007a6 (patch)
treebc29f699e7c901c219cffc5f50fba99dca53d5bd /hugolib/hugo_sites_build.go
parentf9f779786edcefc4449a14cfc04dd93379f71373 (diff)
downloadhugo-cea157402365f34a69882110a4208999728007a6.tar.gz
hugo-cea157402365f34a69882110a4208999728007a6.zip
Add Dart Sass support
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes #7380 Fixes #8102
Diffstat (limited to 'hugolib/hugo_sites_build.go')
-rw-r--r--hugolib/hugo_sites_build.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go
index c1a4ab190..ccdf9e435 100644
--- a/hugolib/hugo_sites_build.go
+++ b/hugolib/hugo_sites_build.go
@@ -48,6 +48,10 @@ func (h *HugoSites) Build(config BuildCfg, events ...fsnotify.Event) error {
// Make sure we don't trigger rebuilds in parallel.
h.runningMu.Lock()
defer h.runningMu.Unlock()
+ } else {
+ defer func() {
+ h.Close()
+ }()
}
ctx, task := trace.NewTask(context.Background(), "Build")