broccoli-clean-css

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 BroccoliCleanCss = require('broccoli-clean-css');
class BroccoliCleanCss(node [, options])
node: String
(directory path) or Object
(Broccoli node)
options: Object
(clean-css constructor options)
const BroccoliCleanCss = require('broccoli-clean-css');
module.exports = new BroccoliCleanCss('path/to/styles');
There are some differences from the original clean-css:
rebaseTo
option is regarded as relative to the Broccoli target path.returnPromise
option defaults to true
and cannot be disabled.- All problems that clean-css considers as warnings, for example broken CSS syntax, are regarded as errors.
License
Copyright (c) 2014 - 2017 Shinnosuke Watanabe
Licensed under the MIT License.