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

svg() or url() ? #42

Open keithjgrant opened 6 years ago

keithjgrant commented 6 years ago

The documentation on http://pavliko.github.io/postcss-svg/ indicates that the plugin uses an svg() function for replacement, but this documentation (and the plugin itself) uses url().

The website also indicates this function name is configurable, which it is not. I really wish this could be configured so I could use svg() and leave native url() functions unaltered.

jonathantneal commented 6 years ago

@keithjgrant, this is an artifact of the old version of postcss-svg, and I’m sorry for not updating that old gh-pages site. Thanks for bringing this to my attention.

Separately, I think we can make the function name configurable again.

This is really 2 issues:

  1. A Bug Report: the website describes defunct functionality.
  2. A Feature Request: configure the function name.