Google's Closure tools have been able to do this for several years. It's mainly documented at https://github.com/google/closure-stylesheets/blob/master/RE... but has counterparts in Closure Compiler, and Templates; for JS and HTML, respectively.
16 karma · joined September 18, 2011
EDIT: Also Fortran.
The stated reason is to reduce file size.