about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2025-01-05 20:37:32 +0100
committerAlan Pearce2025-01-05 20:37:32 +0100
commitd289e54af28de6b21cbe49cebc262c4e3ca9f6d2 (patch)
treea6ddb7afd3e4738d4122511850f310d24531b405
parent750d4948e81e1ac6b6a63386b96f8c60828891e5 (diff)
downloadsearchix-d289e54af28de6b21cbe49cebc262c4e3ca9f6d2.tar.lz
searchix-d289e54af28de6b21cbe49cebc262c4e3ca9f6d2.tar.zst
searchix-d289e54af28de6b21cbe49cebc262c4e3ca9f6d2.zip
fix(dev): overwrite previous asset hash on change
-rw-r--r--frontend/assets.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontend/assets.go b/frontend/assets.go
index 7a90d80..b1c2efa 100644
--- a/frontend/assets.go
+++ b/frontend/assets.go
@@ -86,10 +86,12 @@ func hashStyles() error {
 }
 
 func Rehash() (err error) {
+	Assets.Scripts = []*Asset{}
 	err = hashScripts()
 	if err != nil {
 		return err
 	}
+	Assets.Stylesheets = []*Asset{}
 	err = hashStyles()
 	if err != nil {
 		return err