nDmitry / grunt-autoprefixer

Parse CSS and add vendor-prefixed CSS properties using the Can I Use database. Based on Autoprefixer.
MIT License
795 stars 60 forks source link

Browser list ['> 5% in US'] throws warning #117

Closed jbender closed 9 years ago

jbender commented 9 years ago

Probably something that is actually a problem with ai/browserlist but this is throwing a warning in my grunt config, see the verbose output below:

Running "autoprefixer:dist" (autoprefixer) task
Verifying property autoprefixer.dist exists in config...OK
Files: .tmp/styles/main.css -> .tmp/styles/main.css
Options: cascade, diff=false, map=false, silent=false, browsers=["last 2 versions","> 5% in US"]
Warning: Unknown browser requirement `> 5% in US` Use --force to continue.

Interestingly this is actually used as their example on that page, so I'm not quite sure what's going on.

nDmitry commented 9 years ago

Couldn't reproduce this. From silent option in your output I can tell you're using an outdated plugin version, please update and try again.

jbender commented 9 years ago

Upgrading did the trick, should have tried that first :+1: