Mercurial
view mrjunejune/README.md @ 241:9c2eec61a152
[assets] Generate site images as WebP with Bazel
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 03 Aug 2026 11:26:30 -0700 |
| parents | 1c0878eb17de |
| children | 543df0fe7168 |
line wrap: on
line source
# Mrjunejune My personal website where I post my blogs / about me and resume. ## WebP assets Raster source images live under `mrjunejune/assets/png/` and `assets/png/`. Bazel converts them to WebP before they enter the server runfiles or release bundle: ```bash bazel build //mrjunejune:generated_webp_assets bazel build //mrjunejune:mrjunejune_server_bundle ``` The deployed site contains no PNG files. Add new PNG source assets to the corresponding list in `mrjunejune/BUILD` or `assets/BUILD`, then reference the generated `.webp` URL from the site. ## TODO - Add caching layer - Update talk to be part - Update test to automatically tests all paths for blogs.