Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Plugin name should be specified #28

Open
CavalcanteLeo opened this issue Mar 23, 2021 · 4 comments · May be fixed by #38
Open

Error in Plugin name should be specified #28

CavalcanteLeo opened this issue Mar 23, 2021 · 4 comments · May be fixed by #38
Labels
bug Something isn't working

Comments

@CavalcanteLeo
Copy link

as related here:
webpack-contrib/image-minimizer-webpack-plugin#190

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

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

@ricardogobbosouza
Copy link
Member

@ricardogobbosouza ricardogobbosouza added the bug Something isn't working label Apr 5, 2021
@FreekVR
Copy link

FreekVR commented Apr 16, 2021

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.

@tex0l
Copy link

tex0l commented Jul 26, 2021

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 }] }]
      ]
    }
  },

@baixiaoyu2997
Copy link

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

build success,but img size no change

@GMartigny GMartigny linked a pull request Apr 6, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants