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

Added a warning if no source files were found. Stops silent failure. #42

Closed shakyShane closed 10 years ago

shakyShane commented 10 years ago

Filtering over f.src when the array length is 0 causes silent failure of this task.

Grunt already ensures that you only have access to existing files in this.files, so a simple simple check on the length of f.src is enough here to give useful feedback to a user.

shakyShane commented 10 years ago

gif

nDmitry commented 10 years ago

That's useful, thanks! I left some notes, please update your PR and I will merge it.

shakyShane commented 10 years ago

Updated as per notes.