News for hackers. Stuff that matters.
Re:CSS Reminification: A crazy idea that worked by sly010 on Wednesday March 08, 2017 @08:46PM (#13826077)
While I am not aware of any open source framework doing this, as long as the programmer holds itself to a few basic rules, this should be possible. If all html/js/css is generated by a template language, you keep the css classes easily parsable and you avoid using dynamic classnames in js (data properties are better for that anyway), you can just replace all classes with random ids.

In fact this is how gettext() works.

Re:CSS Reminification: A crazy idea that worked by jkaptur on Thursday March 09, 2017 @09:48AM (#13829589)
The Closure Compiler is open source and can do this.
Re:CSS Reminification: A crazy idea that worked by sly010 on Thursday March 09, 2017 @01:10PM (#13831392)
Nice! I didn't know the closure compiler toolkit handles css/html templates too. That explains why googles classnames are mangled.