Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

svgo-extra

yisibell1.3kMIT2.3.2TypeScript support: included

A collection of SVGO Plug-ins.

svgo, svgo-plugin, svg, svg-icon

readme


svgo-extra

A collection of SVGO Plug-ins.

Features

  • Make SVG's color easy to change.
  • Make SVG's size responsive.
  • Create a suitable configuration for SVGO.

Installation

# pnmp
$ pnpm add svgo-extra

# yarn
$ yarn add svgo-extra

# npm
$ npm i svgo-extra

APIs

moveChildAttrToSVGElement

Create an SVGO plug-in that can move the attribute of the child node you specify to the svg node.

responsiveSVGSize

Create a SVGO plug-in that can make svg size responsive.

createSvgoConfig

Create a suitable configuration for SVGO, use preset-default config by default.

changelog

Changelog

v2.3.2

compare changes

🩹 Fixes

❤️ Contributors

v2.3.1

compare changes

🩹 Fixes

  • Svgo plugins merge failed (82e4358)

🏡 Chore

  • Upgrade dev dependencies (f03feec)

❤️ Contributors

v2.3.0

compare changes

🚀 Enhancements

  • Upgrade all deps version to latest (a1dc851)

🏡 Chore

❤️ Contributors

v2.2.1

🏡 Chore

  • Ignore lib dir (c84e8e7)
  • Update readme (ea5c146)

❤️ Contributors

v2.2.0

🚀 Enhancements

  • Add default attr stroke-width (e4a4935)

🏡 Chore

  • release: V2.1.0 (9ba3722)
  • Repo sync (002531c)
  • Fix conflicts (f77348b)

❤️ Contributors

v2.1.1

v2.1.0

🚀 Enhancements

  • Upgrade typescript to v5 (141e6da)

❤️ Contributors

compare changes

🚀 Enhancements

  • Add default attr stroke-width (e4a4935)

❤️ Contributors

v2.0.0

🚀 Enhancements

  • ⚠️ Update pkg to module type (0387784)

⚠️ Breaking Changes

  • ⚠️ Update pkg to module type (0387784)

❤️ Contributors

v1.2.0

🚀 Enhancements

  • New function for create a suitable svgo configuration (c36825a)

🏡 Chore

  • Changelog (96fa93a)
  • docs: Update readme (2b0fe3b)

❤️ Contributors

v1.1.0

🚀 Enhancements

  • V1 (db5f1ea)

❤️ Contributors