mrsum / webpack-svgstore-plugin

Simple svg-sprite creating with webpack
https://www.npmjs.com/package/webpack-svgstore-plugin
200 stars 92 forks source link

NaN in svg path #176

Open playlikednb opened 4 years ago

playlikednb commented 4 years ago

I have an icon with a path like that: image When it got parsed by the parseFiles fn, it becomes broken because of NaN's in its path: image The problem is that Arcs in a path have up to 7 parameters. But there 2 last ones are optional. So, if I put an icon with 5 parameters for an Arc, it becomes broken after it's parsed by Svgstore.

The icon `

`

ryan-ludwig commented 4 years ago

I was also running into this issue. Updating the SVGO dependency fixed if for me. https://github.com/mrsum/webpack-svgstore-plugin/pull/180