I've made similar callback functions to strip out all possible whitespace inside of a CSS file. I didn't notice any issues doing it, and it reduced the file sizes of the stylesheets being used considerably (which was the point) -- all on top of using gzip to compress the files as well.