doiuse icon indicating copy to clipboard operation
doiuse copied to clipboard

Update postcss plugin docs?

Open groovecoder opened this issue 9 years ago • 1 comments

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);
          });

?

groovecoder avatar Jan 09 '16 00:01 groovecoder

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?

ismay avatar May 31 '17 15:05 ismay