diff options
author | Alan Pearce | 2025-01-05 20:37:32 +0100 |
---|---|---|
committer | Alan Pearce | 2025-01-05 20:37:32 +0100 |
commit | d289e54af28de6b21cbe49cebc262c4e3ca9f6d2 (patch) | |
tree | a6ddb7afd3e4738d4122511850f310d24531b405 | |
parent | 750d4948e81e1ac6b6a63386b96f8c60828891e5 (diff) | |
download | searchix-d289e54af28de6b21cbe49cebc262c4e3ca9f6d2.tar.lz searchix-d289e54af28de6b21cbe49cebc262c4e3ca9f6d2.tar.zst searchix-d289e54af28de6b21cbe49cebc262c4e3ca9f6d2.zip |
fix(dev): overwrite previous asset hash on change
-rw-r--r-- | frontend/assets.go | 2 |
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 |