cleancss(1)

NAME
cleancss - CSS file minifyer

SYNOPSIS
cleancss
[options] source-file

DESCRIPTION
cleancss is a tool written in Javascript (Node.js) for minifying CSS files. The minified file will be written to stdout or to a given output file.

OPTIONS
cleancss accepts the following common options:

\FC-h, --help\F[]
    Output usage information

\FC-v, --version\F[]
    Output the version number

\FC-e, --remove-empty\F[]
    Remove empty declarations (e.g. a{})

\FC-b, --keep-line-breaks\F[]
    Keep line breaks

\FC--s0\F[]
    Remove all special comments (i.e. /*! special comment */)

\FC--s1\F[]
    Remove all special comments but the first one

\FC-r, --root-path root-path\F[]
    Set a root path to which resolve absolute @import rules

\FC-o, --output output-file\F[]
    Use output-file as output instead of stdout

EXAMPLES
$ cleancss one.css

$ cleancss -o one-min.css one.css

$ cat one.css two.css three.css | cleancss -o merged-and-minified.css

$ cat one.css two.css three.css | cleancss | \
      gzip -9 -c > merged-minified-and-gzipped.css.gz

SEE ALSO
/usr/share/doc/node-clean-css

AUTHOR
This manual has been written for the Debian project by Mike Gabriel <mike.gabriel@das-netzwerkteam.de> and may be used by others.