Open CavalcanteLeo opened 3 years ago
Hi @CavalcanteLeo I will fix using https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/190#issuecomment-801231993
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.
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 }] }]
]
}
},
plugins: () => [ ['gifsicle', { interlaced: true }], ['jpegtran', { progressive: true }], ['optipng', { optimizationLevel: 5 }], ['svgo', { plugins: [{ name: 'removeViewBox', active: false }] }] ]
build success,but img size no change
as related here: https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/190
but i'm only using '@nuxtjs/imagemin'