~bigbes/sr-ht-compare

53d7b9707f1ea95fc7e5a8c1865e1b1dc14beeb4 — bigbes 30 days ago 4a74121
docs: note that static assets are embedded and need a rebuild

web/static is //go:embed-ed into the binary, so `make css`/`make bundle` alone
don't reach the running daemon — re-run `make build` after either. Documents the
stale-asset gotcha in the build section.
1 files changed, 7 insertions(+), 0 deletions(-)

M README.md
M README.md => README.md +7 -0
@@ 70,6 70,13 @@ make css     # build the hashed stylesheet (sassc + minify)
make bundle  # rebuild the vendored frontend bundle (esbuild)
```

> **Static assets are `//go:embed`-ed into the binary** (`web/templates.go`
> embeds `static`). `make css` / `make bundle` only update the files under
> `web/static/` — the running daemon serves the copy baked into `./comparesrht`,
> so **re-run `make build` after either** or the change won't appear. Rebuilding
> the CSS or bundle without a following `go build` is a common way to chase a
> stale asset.

## Configuration

See `config.example.ini`. On a real instance, append the `[compare.sr.ht]`