node package manager

broccoli-clean-css

CSS minifier for Broccoli, using clean-css

broccoli-clean-css

NPM version Build Status Build status Coverage Status Dependency Status devDependency Status

clean-css plugin for Broccoli

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

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

Installation

Use npm.

npm install --save-dev broccoli-clean-css

API

const cleanCSS = require('broccoli-clean-css');

cleanCSS(tree [, options])

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');

License

Copyright (c) 2014 - 2015 Shinnosuke Watanabe

Licensed under the MIT License.