Build-time image delivery gets a lossless WebP pipeline
External image assets can be mirrored locally, converted and reused from a persistent build cache.
What's new?
- A build-time image mirror was added for referenced raster assets.
- The pipeline converts supported raster sources to lossless WebP while retaining SVGs as vector files.
- A persistent cache allows unchanged generated assets to be reused between builds.
The build-time image pipeline was introduced to mirror referenced raster assets locally and convert them into lossless WebP. SVG files remain vector assets, while supported raster formats are processed through the image build workflow.
The pipeline also introduced a persistent cache so unchanged image assets can be reused between deployments. This reduces repeated downloads and conversions when the source content has not changed.
The build records generated asset information in its cache manifest and rewrites supported references to their local output paths. That makes image delivery more consistent while retaining the original visual quality through lossless conversion.
This work established a reusable image-delivery layer for the rest of the static website.