Looking at the code in Sprockets 2, I see manifest.compile accepts an argument. Browsing the code it looks like the argument is a kind of filter you can use on your assets. I didn't try or test anything with it, but maybe it gives you a starting point.