svgo-add-viewbox

SVGO plugin which adds "viewBox" attribute based on "width" and "height" attributes

MIT License

Downloads
7.1K
Stars
6
Committers
2
svgo-add-viewbox - Add abiulity to preserve existing viewBox Latest Release

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
];
svgo-add-viewbox - Latest SVGO support + type: module

Published by scriptex about 1 year ago

This release introduces several breaking changes:

  1. The plugin is incompatible with older versions of SVGO. Only SVGO v3 and above are supported
  2. The package is now pure ES module. It should be used in a module context
  3. The minimum supported NodeJS version has been updated to LTS/* (18 at the time of release)
svgo-add-viewbox - Fix the URL to the documentation

Published by scriptex almost 2 years ago

svgo-add-viewbox - Add support for SVGO v3

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.

svgo-add-viewbox - Updated metadata

Published by scriptex about 2 years ago

This release does not introduce any code changes.
This release updates the repository and package metadata.

svgo-add-viewbox - Initial release

Published by scriptex over 3 years ago

Package Rankings
Top 19.05% on Npmjs.org
Badges
Extracted from project README
Github Build Codacy Badge Codebeat Badge CodeFactor Badge DeepScan grade Analytics