Skip to content

Commit

Permalink
Add svgo plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Nov 3, 2019
1 parent d27908e commit e5f3734
Show file tree
Hide file tree
Showing 3 changed files with 908 additions and 686 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function fixRenderingBugs(svgrOutput) {

var defaultsvgrConfig = {
native: true,
plugins: ['@svgr/plugin-svgo', '@svgr/plugin-jsx'],
svgoConfig: {
plugins: [
{
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
],
"dependencies": {
"@svgr/core": "^4.1.0",
"@svgr/plugin-svgo": "^4.3.1",
"path-dirname": "^1.0.2",
"semver": "^5.6.0"
},
Expand Down
Loading

0 comments on commit e5f3734

Please sign in to comment.