Pavliko / postcss-svg

PostCSS plug-in which to insert inline SVG to CSS and allows you to manage it colors.
http://pavliko.github.io/postcss-svg/
Creative Commons Zero v1.0 Universal
124 stars 23 forks source link

some svg structure call error #21

Closed serGlazkov closed 7 years ago

serGlazkov commented 9 years ago

<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> if svg file have this text at start document in console drop error if delete, all is ok TypeError: Cannot read property 'childNodes' of undefined at SVGImage._parseSvg (/node_modules/postcss-svg/dist/lib/svg_image.js:98:53)