juliomrqz / nuxt-optimized-images

🌅🚀 Automatically optimizes images used in Nuxt.js projects (JPEG, PNG, SVG, WebP and GIF).
https://marquez.co/docs/nuxt-optimized-images/
MIT License
841 stars 30 forks source link

Removing viewBox from destination svg #326

Open wokalek-work opened 3 years ago

wokalek-work commented 3 years ago

Why on production generate you remove viewBox from svg element if you image with ?include?

Can you just don't do that???

Sergei8888 commented 2 years ago

That is imagemin-svgo setting. Set: svgo: { plugins: [{ name: "removeViewBox", active: false }] },