all repos — searchix @ d289e54af28de6b21cbe49cebc262c4e3ca9f6d2

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix(dev): overwrite previous asset hash on change
Alan Pearce alan@alanpearce.eu
Sun, 05 Jan 2025 20:37:32 +0100
commit

d289e54af28de6b21cbe49cebc262c4e3ca9f6d2

parent

750d4948e81e1ac6b6a63386b96f8c60828891e5

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M frontend/assets.gofrontend/assets.go
@@ -86,10 +86,12 @@ return nil }
 
 func Rehash() (err error) {
+	Assets.Scripts = []*Asset{}
 	err = hashScripts()
 	if err != nil {
 		return err
 	}
+	Assets.Stylesheets = []*Asset{}
 	err = hashStyles()
 	if err != nil {
 		return err