about summary refs log tree commit diff stats
path: root/internal/builder/builder.go
diff options
context:
space:
mode:
authorAlan Pearce2024-06-13 17:31:24 +0200
committerAlan Pearce2024-06-13 17:31:38 +0200
commita00efb33a128ea0b422de01a56c585c93f8d3d13 (patch)
tree363b983734db91cb5696477744e478cfe458a5b6 /internal/builder/builder.go
parentf9b4d8ec8c475c541960e89022c28f950e8f0a2a (diff)
downloadwebsite-a00efb33a128ea0b422de01a56c585c93f8d3d13.tar.lz
website-a00efb33a128ea0b422de01a56c585c93f8d3d13.tar.zst
website-a00efb33a128ea0b422de01a56c585c93f8d3d13.zip
enable changes to styles in dev mode
Diffstat (limited to 'internal/builder/builder.go')
-rw-r--r--internal/builder/builder.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/builder/builder.go b/internal/builder/builder.go
index aec41e3..b17fbc2 100644
--- a/internal/builder/builder.go
+++ b/internal/builder/builder.go
@@ -7,6 +7,7 @@ import (
 	"os"
 	"path"
 	"slices"
+	"sync"
 	"time"
 
 	"website/internal/config"
@@ -62,6 +63,7 @@ func writerToFile(writer io.WriterTo, filename ...string) error {
 
 func build(outDir string, config config.Config) error {
 	log.Debug("output", "dir", outDir)
+	assetsOnce = sync.Once{}
 	privateDir := path.Join(outDir, "private")
 	if err := mkdirp(privateDir); err != nil {
 		return errors.WithMessage(err, "could not create private directory")