Skip to content

Add abiulity to preserve existing viewBox

Latest
Compare
Choose a tag to compare
@scriptex scriptex released this 22 Apr 06:14
· 6 commits to master since this release

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
];