Here's a grunt file that handles folders- https://gist.github.com/tedivm/53063e46b58ef80e9df1