node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

broccoli-clean-css

CSS minifier for Broccoli, using clean-css

broccoli-clean-css

clean-css plugin for Broccoli

a {
  color: #FF0000;
}
 
a {
  border-radius: 4px 4px 4px 4px;
}

a{color:red;border-radius:4px}

Use npm.

npm install --save-dev broccoli-clean-css
const cleanCSS = require('broccoli-clean-css');

tree: String or Object (broccoli tree)
options: Object (directly passed to clean-css options)
Return: Function

Note that relativeTo option is relative to the source tree by default.

//Brocfile.js 
const cleanCSS = require('broccoli-clean-css');
 
module.exports = cleanCSS('styles');

Copyright (c) 2014 - 2015 Shinnosuke Watanabe

Licensed under the MIT License.