Webp support is broken
When using the below (example) in NUXT, i get the error: Format "webp" not supported. Filing issue here, because WebP support is mentioned as a feature, and "yarn add nuxt-responsive-loader" should be plug and play.
<picture>
<source :srcset="require('~/assets/images/something.png?format=webp').srcSet" sizes='(min-width: 1024px) 20vw, 30vw' type="image/webp">
....
</picture>
- I am using the sharp adapter (verified)
- If webp is added to the default MIMES and EXTS in node-modules/responsive-loader/lib/index.js it works.
@mhaskymedia Did you manage to get it working?
@dnovosad1 @mhaskymedia you have to add responsive-loader to you package.json next to nuxt-resposnive-loader. It worked for me. yarn add responsive-loader
As @tadeuszderuijter said, you can force the version of responsive-loader used by the package by :
npm install --save-dev [email protected]
@Ratatinator97 thank you, that solved the issue for me!