diff --git a/packages/theme-images/images.js b/packages/theme-images/images.js index 9c78528..d647fc6 100644 --- a/packages/theme-images/images.js +++ b/packages/theme-images/images.js @@ -65,7 +65,7 @@ export function getSizedImageUrl(src, size) { return removeProtocol(src); } - const match = src.match(/\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?$/i); + const match = src.match(/\.(jpg\.webp|jpeg\.webp|jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?$/i); if (match) { const prefix = src.split(match[0]);