@proxy-figma-export/transform-svg-with-svgo
v3.6.0
Published
Transformer for @figma-export that optimizes svgs using svgo tool
Downloads
13
Maintainers
Readme
@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 }
]
}]
]
};