3.6.0 • Published 3 years ago

@proxy-figma-export/transform-svg-with-svgo v3.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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