anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.25k stars 51 forks source link

Update postcss plugin docs? #35

Open groovecoder opened 8 years ago

groovecoder commented 8 years ago

The docs suggest I should use doiuse as a postcss plugin like this?

          postcss(doiuse({onFeatureUsage:function(usageInfo){
            alert(usageInfo.message);
          }})).process(styleSheetContent)

But, I had to use it this way:

          postcss([doiuse]).process(styleSheetContent).then(function(result) {
            alert(result);
          });

?

ismay commented 7 years ago

Haven't had time to test this, but you're right, that is in line with the postcss api docs: http://api.postcss.org/Processor.html. Would you be open to submit a pr to fix this in the readme?