Closed sebastienbarre closed 8 years ago
With respect to the PostCSS plugin, what about this: if the onFeatureUsage
callback is not set, then we use PostCSS's result.warn
to send the warning message (which in turn can be intercepted and pretty-printed by postcss-reporter
). This doesn't break any API, and people can still silence doiuse
by providing an empty callback (then again, I'm not sure why you wouldn't want to see the warnings). I can push a PR along these lines.
Closed by #26
I was wondering about the rational behind using the
onFeatureUsage
callback in the PostCSS plugin? Wouldn't PostCSS'sresult.warn()
API make more sense? In that way warnings would flow through PostCSS, and could potentially be pretty-printed bypostcss-reporter
. Alternatively, maybe both could be used? Thank you. (I can work on a PR if needed)