Skip to content

Commit

Permalink
docs: Clarify use of SVGO (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
peteruithoven authored Nov 17, 2023
1 parent 9079e6f commit 8bcbf9c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ svgr({
});
```

If you want to enable SVGO you can install `@svgr/plugin-svgo` and use following options to enable and configure it:

```js
svgr({
svgrOptions: {
plugins: ['@svgr/plugin-svgo', '@svgr/plugin-jsx'],
svgoConfig: {
floatPrecision: 2,
},
},
// ...
});
```

## License

MIT

0 comments on commit 8bcbf9c

Please sign in to comment.