@figma-export/transform-svg-with-svgo
Advanced tools
Comparing version 0.0.1-alpha.7 to 0.0.1-alpha.8
{ | ||
"name": "@figma-export/transform-svg-with-svgo", | ||
"version": "0.0.1-alpha.7", | ||
"version": "0.0.1-alpha.8", | ||
"description": "Transformer for @figma-export that optimizes svgs using svgo tool", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "dc0b939c0fd0f654e7c390429e371a3a8c8e4859" | ||
"gitHead": "358ac4e5fc372091f4eae2278bae64dea2834b94" | ||
} |
# @figma-export/transform-svg-with-svgo | ||
> Transformer for [@figma-export](https://github.com/marcomontalbano/figma-export) that optimizes svgs using `svgo` tool. | ||
> Transformer for [@figma-export](https://github.com/marcomontalbano/figma-export) that optimizes svgs using [svgo](https://github.com/svg/svgo) tool. | ||
@@ -10,3 +10,3 @@ ## Install | ||
```sh | ||
npm i -D @figma-export/transform-svg-with-svgo | ||
npm install --save-dev @figma-export/transform-svg-with-svgo | ||
``` | ||
@@ -19,1 +19,20 @@ | ||
``` | ||
## Usage | ||
You can use a custom configuration for svgo, creating a `.figmaexportrc.js` file and provide a `config` object for this package. | ||
```js | ||
// .figmaexportrc.js | ||
module.exports = { | ||
configs: [ | ||
['@figma-export/transform-svg-with-svgo', { | ||
plugins: [ | ||
{ removeViewBox: false }, | ||
{ removeDimensions: true } | ||
] | ||
}] | ||
] | ||
}; | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1527
37