Releases: scriptex/svgo-add-viewbox
Releases · scriptex/svgo-add-viewbox
Add abiulity to preserve existing viewBox
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
];
Latest SVGO support + type: module
This release introduces several breaking changes:
- The plugin is incompatible with older versions of SVGO. Only SVGO v3 and above are supported
- The package is now pure ES module. It should be used in a module context
- The minimum supported NodeJS version has been updated to LTS/* (18 at the time of release)
Fix the URL to the documentation
2.0.1 Fix the URL to the documentation
Add support for SVGO v3
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.
Updated metadata
This release does not introduce any code changes.
This release updates the repository and package metadata.
Initial release
1.0.0 Remove all dependencies