@minolettinat/proxy-figma-export-transform-svg-with-svgo
v4.5.2
Published
Transformer for @minolettinat/figma-export that optimizes svgs using svgo tool
Downloads
5
Maintainers
Readme
@minolettinat/proxy-figma-export-transform-svg-with-svgo
Transformer for @minolettinat/figma-export that optimizes svgs using svgo tool.
Install
Using npm:
npm install --save-dev @minolettinat/proxy-figma-export-transform-svg-with-svgo
or using yarn:
yarn add @minolettinat/proxy-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: [
['@minolettinat/proxy-figma-export-transform-svg-with-svgo', {
plugins: [
{
name: 'preset-default',
params: {
overrides: {
removeViewBox: false,
}
}
},
{
name: 'removeDimensions',
active: true
}
]
}]
]
};