Mercurial
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 240:c345083cd8a7 | 241:9c2eec61a152 |
|---|---|
| 1 # Mrjunejune | 1 # Mrjunejune |
| 2 | 2 |
| 3 My personal website where I post my blogs / about me and resume. | 3 My personal website where I post my blogs / about me and resume. |
| 4 | |
| 5 ## WebP assets | |
| 6 | |
| 7 Raster source images live under `mrjunejune/assets/png/` and `assets/png/`. | |
| 8 Bazel converts them to WebP before they enter the server runfiles or release | |
| 9 bundle: | |
| 10 | |
| 11 ```bash | |
| 12 bazel build //mrjunejune:generated_webp_assets | |
| 13 bazel build //mrjunejune:mrjunejune_server_bundle | |
| 14 ``` | |
| 15 | |
| 16 The deployed site contains no PNG files. Add new PNG source assets to the | |
| 17 corresponding list in `mrjunejune/BUILD` or `assets/BUILD`, then reference the | |
| 18 generated `.webp` URL from the site. | |
| 4 | 19 |
| 5 ## TODO | 20 ## TODO |
| 6 | 21 |
| 7 - Add caching layer | 22 - Add caching layer |
| 8 - Update talk to be part | 23 - Update talk to be part |