With Google Page Speed Insights now requiring a next-gen images formats (webp or avif) to get a good score, I’m looking for a way to get Sage to automatically generate (and serve?) webp images of the theme.
You’ll have to modify the webpack config in Sage 9 to pull it off, but does this help?
I’m not a fan of image compression or optimization being done at the theme level anymore and would suggest looking into a image CDN service to just automate this sort of thing
Thanks for your answer @ben , I will have a look into it and post my solution.
Since image compression is included by default in Sage 9 when doing a production build, I thought it would be the way to go. And it’s always possible to add CDN on top of it.
Thanks for the suggestion @srarsis !
Sadly the current projects I’m referring to are in production, I cannot update them, I need to add this in existing Sage projects.