diff --git a/gatsby-source-graphcms/src/gatsby-node.js b/gatsby-source-graphcms/src/gatsby-node.js index 04bb2a1..d1956eb 100644 --- a/gatsby-source-graphcms/src/gatsby-node.js +++ b/gatsby-source-graphcms/src/gatsby-node.js @@ -320,7 +320,7 @@ export async function onCreateNode( if ( downloadLocalImages && node.remoteTypeName === 'Asset' && - ['image/png', 'image/jpg', 'image/jpeg', 'image/tiff'].includes( + ['image/png', 'image/jpg', 'image/jpeg', 'image/tiff', 'image/webp'].includes( node.mimeType ) ) { @@ -398,7 +398,7 @@ function makeResolveGatsbyImageData(cache) { options ) { if ( - !['image/png', 'image/jpg', 'image/jpeg', 'image/tiff'].includes(mimeType) + !['image/png', 'image/jpg', 'image/jpeg', 'image/tiff', 'image/webp'].includes(mimeType) ) { return null }