Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Latest commit

 

History

History
 
 

transform-svg-with-svgo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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