clean-css plugin for less.js
npm install less-plugin-clean-cssbash
npm install -g less
`
then install the less-plugin-clean-css
`bash
npm install -g less-plugin-clean-css
`
and then on the command line,
`bash
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
`js
var LessPluginCleanCSS = require('less-plugin-clean-css'),
cleanCSSPlugin = new LessPluginCleanCSS({advanced: true});
less.render(lessString, {plugins: [cleanCSSPlugin]})
.then(
``