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

Raise a error on unknown file #7

Closed ai closed 9 years ago

ai commented 9 years ago

There is a big issue in plugin error handling.

Common user case:

  1. Install postcss-svg.
  2. Add some CSS with svg.

If path will be wrong, postcss-svg will not say anything. And user will not even know does this plugin works or not.

Of course, plugin must raise a error on unknow file. What is a user case to hide this errors?