Releases: scriptex/svgo-viewbox
Type: Module
Correctly load custom SVGO config
This release takes care of incorrectly loaded custom SVGO configuration file.
Add support for optional and variadic arguments
This release adds support for optional and variadic arguments.
This new feature makes it possible to integrate svgo-viewbox with code quality tools such as lint-staged.
It is now possible to provide flexible command arguments and receive the expected results.
For example:
svgo-viewbox ./assets/logo.svg ./assets2will add the viewBox attribute to the logo.svg file in ./assets folder as well as all SVG files inside the ./assets2 folder.
The command can also be mixed with the already supported arguments.
For example:
svgo-viewbox -i ./assets/ -f ./svgo-config.js ./assets2/logo.svgwill add the viewBox attribute to the logo.svg file in ./assets2 folder as well as all svg files inside the ./assets folder and will use the ./svgo-config.js file when optimizing the SVG files with SVGO.
Downgrade `meow`
This release downgrades the meow package as it's newer versions are pure ESM and is incompatible with the current implementation of the svgo-viewbox module.
Handle single files as well
Up until today only SVG files located in a folder could have their viewBox attribute added via svgo-viewbox.
This release makes it possible to add the viewBox attribute to a single SVG file as well.
Just use the module as before and specify the path to the SVG file in the --input (or --i) flag.
svgo-viewbox --i ./assets/images/svg/file.svgUpdated metadata
This release does not introduce any code changes.
This release updates the repository and package metadata.
Downgrade Meow
2.0.4 Downgrade meow
Fix SVGO CleanupIDs plugin's unique ID ability
This release fixes the (previously broken) ability of SVGO's CleanupIDs plugin to generate unique IDs for SVG elements.
Fix CLI flags
This release fixes an issue with kebab-cased CLI flag
Updated README
This release updates the README file for the v2 release