feat: integrate WebP/AVIF image optimization into build pipeline
- Add sharp dependency for image format conversion - Generate WebP (quality 80) and AVIF (quality 70) variants for all raster images - Render <picture> elements with srcset fallbacks (AVIF > WebP > original) - SVG images remain as <img> without picture wrapper - Update Dockerfile to install libvips for sharp, copy from public/ dir - Add nginx cache rules for .webp and .avif files - Add .gitignore for node_modules, public, dist
This commit is contained in:
@@ -85,4 +85,4 @@ jobs:
|
||||
kubectl apply -f k8s/deployment.yaml
|
||||
kubectl apply -f k8s/service.yaml
|
||||
kubectl apply -f k8s/ingress.yaml
|
||||
kubectl rollout status deployment/signalledger -n ${{ env.NAMESPACE }} --timeout=120s
|
||||
kubectl rollout status deployment/news-site -n ${{ env.NAMESPACE }} --timeout=120s
|
||||
|
||||
Reference in New Issue
Block a user