@proxy-figma-export/transform-svg-with-svgo
TypeScript icon, indicating that this package has built-in type declarations

3.6.0 • Public • Published

@figma-export/transform-svg-with-svgo

Transformer for @figma-export that optimizes svgs using svgo tool.

Install

Using npm:

npm install --save-dev @figma-export/transform-svg-with-svgo

or using yarn:

yarn add @figma-export/transform-svg-with-svgo --dev

Usage

You can use a custom configuration for svgo, creating a .figmaexportrc.js file and provide a config object for this package.

// .figmaexportrc.js

module.exports = {
  configs: [
    ['@proxy-figma-export/transform-svg-with-svgo', {
      plugins: [
        { removeViewBox: false },
        { removeDimensions: true }
      ]
    }]
  ]
};

Package Sidebar

Install

npm i @proxy-figma-export/transform-svg-with-svgo

Weekly Downloads

0

Version

3.6.0

License

MIT

Unpacked Size

4.42 kB

Total Files

7

Last publish

Collaborators

  • minolettinat