From ff4a5cdbe0d8b92e6fcf10791a522c16209dfa1b Mon Sep 17 00:00:00 2001 From: Troy Karraker <48978134+TeeKraken@users.noreply.github.com> Date: Tue, 17 Nov 2026 01:23:01 -0800 Subject: [PATCH 1/2] Footer: say it's a house build and that anyone can build the idea too --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index d1b2d69..c6c6f5a 100644 --- a/index.html +++ b/index.html @@ -108,7 +108,7 @@

Saved weigh-ins

From d7ff68ef994b047eda7b2c0b215cacf9eb3bb999 Mon Sep 17 00:00:00 2001 From: Troy Karraker <48978134+TeeKraken@users.noreply.github.com> Date: Tue, 17 Nov 2026 01:32:20 -0800 Subject: [PATCH 2/2] Offline copy: hash index.html into the cache name so HTML-only changes reach installed apps --- vite.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 238754c..6437f01 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -24,6 +24,10 @@ function serviceWorker(): Plugin { hash.update(name); hash.update(item.type === "chunk" ? item.code : item.source); } + // index.html isn't in the bundle yet when this runs, so hash its source too: + // otherwise an HTML-only change would keep the old offline shell forever. + hash.update("index.html"); + hash.update(readFileSync(here("index.html"))); for (const name of publicFiles) { hash.update(name); hash.update(readFileSync(here(`public/${name}`)));