Less Plugin Clean Css Save

Post-process and compress CSS using clean-css.

Project README

Github Actions CI Downloads

less-plugin-clean-css

Compresses the css output from less using clean-css.

lessc usage

First of all install less via

npm install -g less

then install the less-plugin-clean-css

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]})
    .then(

Browser usage

Browser usage is not supported at this time.

Open Source Agenda is not affiliated with "Less Plugin Clean Css" Project. README Source: less/less-plugin-clean-css
Stars
189
Open Issues
9
Last Commit
2 weeks ago
License

Open Source Agenda Badge

Open Source Agenda Rating