CSS Mini Minifier v1.0

The Smallest (92 bytes) CSS Minifier in JavaScript!



New: try the instant minifiers



CSS code:

Try Normalize.css or miniMinifier test file !



Minifier's JS code:

(Call this function with one parameter: a string containing the CSS code)
c.replace(/(\\/\\*[^]*?\\*\\/|\\s)+/g,' ')
 .replace(/^ | $|[ ;]*([^\\:\\w.#'\" *-]) *|(:) */g,'$1$2')

Options

-
-
-
-
-
-




By Maxime Euzière for 140byt.es - See Gist - Fork me on Github