Post-process and compress CSS using clean-css.
Latest commit b405348 Sep 17, 2015 @lukeapage lukeapage Merge pull request #14 from PixnBits/master
Failed to load latest commit information.
lib respect restructuring option Jul 23, 2015
.gitignore initial Sep 12, 2014
LICENSE Update LICENSE Sep 17, 2015 Update Dec 25, 2014
package.json New version Jul 23, 2015

NPM version Dependencies devDependency Status optionalDependency Status


Compresses the css output from less using clean-css.

lessc usage

npm install -g less-plugin-clean-css

and then on the command line,

lessc file.less --clean-css="--s1 --advanced --compatibility=ie8"

See clean-css for the available command options - the only differences are advanced and rebase which we default to false, because it is not always entirely safe.

Programmatic usage

var LessPluginCleanCSS = require('less-plugin-clean-css'),
    cleanCSSPlugin = new LessPluginCleanCSS({advanced: true});
less.render(lessString, { plugins: [cleanCSSPlugin] })

Browser usage

Browser usage is not supported at this time.