Mini CSS Minifier 0.3
http://xem.github.com/miniMinifier/
-
Size: 140 characters.
-
Strong minification of CSS code (all the comments and the unnecessary spaces/tabs/line jumps and ";" are removed).
-
Includes a fix for IE that needs a space after some parenthesis (like url(...) no-repeat).
-
Fixes the two annoying 0.2 bugs
- the function needed to be called twice on complex CSS files
- and it removed spaces between classnames like ".class1 .class2"
Hello atk,
Thanks for this technique that minifies the replace function!
I don't understand what '[^]' means but it seems to do the job! (you forgot a "", it has to be [^] to work)
Thanks to you, 3 + 3 bytes were saved.
so you managed to do better than the 135bytes version hidden in my site's source code (https://github.com/xem/miniMinifier/blob/gh-pages/index.html#L81-94). This version got rid of the "(\s|.)" part too.
I'll update all that tomorrow.