nDmitry / grunt-postcss

Apply several post-processors to your CSS using PostCSS.
MIT License
419 stars 57 forks source link

Postcss exits process when file source array is empty. #83

Open vilmosioo opened 8 years ago

vilmosioo commented 8 years ago

This breaks any watch task that uses grunt-postcss.

jayenashar commented 8 years ago

i'm having a different issue that may be related to this one.

https://github.com/nDmitry/grunt-postcss/blob/master/tasks/postcss.js#L124 seems to return while in a loop. not only could this cause @vilmosioo's issue, but it also seems to cause havoc with other async tasks that run after. (i'm having trouble where grunt doesn't wait for svgmin to finish before it moves on to the next task/exiting.)