TylerBarnes / gatsby-wordpress-inline-images

Fluid images for gatsby-source-wordpress inline images in post_content
57 stars 25 forks source link

Queston: How to implement WebP? #30

Closed 8ctopotamus closed 4 years ago

8ctopotamus commented 4 years ago

I have the withWebp property set to true in my gatsby-config.js, but the plugin still generates the format of the original image. How do we tell it to use Webp instead?

withWebp: true, // enable WebP files generation

Thanks!

8ctopotamus commented 4 years ago

Nevermind! That was a bad question. I just looked at the markup the plugin generates and saw the webp file used in the <picture> element!