imagemin-module icon indicating copy to clipboard operation
imagemin-module copied to clipboard

Error in Plugin name should be specified

Open CavalcanteLeo opened this issue 3 years ago • 4 comments

as related here: https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/190

but i'm only using '@nuxtjs/imagemin'

Captura de Tela 2021-03-23 às 12 17 20

CavalcanteLeo avatar Mar 23 '21 15:03 CavalcanteLeo

Hi @CavalcanteLeo I will fix using https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/190#issuecomment-801231993

ricardogobbosouza avatar Apr 05 '21 17:04 ricardogobbosouza

Hi @ricardogobbosouza, any idea when the fix will be forthcoming? I was trying to work-around it by providing my own svgo settings, but due to #30 , I wasn't able to change the default settings.

FreekVR avatar Apr 16 '21 10:04 FreekVR

The way I fixed it is to do the following:

  imagemin: {
    minimizerOptions: {
      plugins: () => [
        ['gifsicle', { interlaced: true }],
        ['jpegtran', { progressive: true }],
        ['optipng', { optimizationLevel: 5 }],
        ['svgo', { plugins: [{ name: 'removeViewBox', active: false }] }]
      ]
    }
  },

tex0l avatar Jul 26 '21 16:07 tex0l

plugins: () => [ ['gifsicle', { interlaced: true }], ['jpegtran', { progressive: true }], ['optipng', { optimizationLevel: 5 }], ['svgo', { plugins: [{ name: 'removeViewBox', active: false }] }] ]

build success,but img size no change

baixiaoyu2997 avatar Oct 20 '21 02:10 baixiaoyu2997