wemake-services/nuxt-imagemin

WebP support

Closed this issue · 4 comments

Hi.

Is it possible to add support for the WebP format?
There is a library for the "imagemin" that might help.

Thanks.

Sure! Can you please send a PR?

@derevandal no need a PR, just right configuration..

nuxt.config.js

import imageminWebp from 'imagemin-webp'

module.exports = {
  ....
  modules: [
    ['nuxt-imagemin', {
      plugins: [
        imageminWebp({quality: 50})
      ]
    }]
  ]
  ...
}

@derevandal please, verify that @ricardogobbosouza's solution works. And I will close this issue.

@sobolevn can you close and accept my pr to document this in readme