pixo icon indicating copy to clipboard operation
pixo copied to clipboard

Difference with Babel plugin?

Open juandc opened this issue 6 years ago • 2 comments

I've always used the Inline React SVG plugin for using SVGs in my Reactjs projects.

So, in simple words: Why should I use pixo for converting my SVGs to React Components instead of using directly the SVGs with the babel plugin? Is there an Advantage or is just an alternative?

juandc avatar May 01 '18 22:05 juandc

Haven’t used this personally, but sometimes it’s nice to build a package of icon components from SVG files that is consumed by other apps. Seems like the Babel plugin doesn’t have a template option either, if I’m not mistaken

jxnblk avatar May 01 '18 23:05 jxnblk

Also this uses a different/simpler/more limited optimization strategy than svgo

jxnblk avatar May 01 '18 23:05 jxnblk