viewBox is removed from SVGs
samikeijonen opened this issue · 3 comments
samikeijonen commented
viewBox
should not be removed when running npm run build
. viewBox
is needed for consistent styling.
Just leaving the notice here, debug later.
samikeijonen commented
m-e-h commented
Some others I've found useful
imagemin.svgo({
plugins: [
{ cleanupIDs: true },
{ removeTitle: true },
{ removeViewBox: false },
{ removeAttrs: { attrs: "(fill|stroke)" } },
{ addClassesToSVGElement: { className: "v-icon" } },
{ removeUselessStrokeAndFill: true },
{ cleanupNumericValues: { floatPrecision: 2 } },
{ removeNonInheritableGroupAttrs: true },
{ removeDimensions: true }
]
})
justintadlock commented
This should be correct in the latest.