nuxt-optimized-images icon indicating copy to clipboard operation
nuxt-optimized-images copied to clipboard

Removing viewBox from destination svg

Open wokalek-work opened this issue 3 years ago • 1 comments

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

Can you just don't do that???

wokalek-work avatar Jun 23 '21 10:06 wokalek-work

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

Sergei8888 avatar Oct 16 '21 15:10 Sergei8888