SVGO plugin which adds "viewBox" attribute based on "width" and "height" attributes
MIT License
Published by scriptex 6 months ago
This release introduces usage of SVGO plugin params
.
The first supported "param" is the overwrite
which defaults totrue
.
If set to false
, svgoAddViewbox
will not overwrite any existing viewBox
attribute on your input SVGs.
Usage:
plugins: [
// ... more plugins
{
...addViewBox,
params: {
overwrite: false
}
}
// ... more plugins
];
Published by scriptex about 1 year ago
This release introduces several breaking changes:
Published by scriptex almost 2 years ago
Published by scriptex almost 2 years ago
This release adds support for SVGO v3 which introduces breaking changes in handling the dimensions of the SVG files.
svgo-add-viewbox
v1.x.x still works with SVGO v2.
Published by scriptex about 2 years ago
This release does not introduce any code changes.
This release updates the repository and package metadata.
Published by scriptex over 3 years ago