clean-css-promise
clean-css with the default Promise interface and some improvements
const CleanCssPromise = ; async { const styles = await ; //=> 'p{color:red}'};
Installation
npm install clean-css-promise
API
const CleanCssPromise = ;
class CleanCssPromise([options])
options: Object
(clean-css constructor options)
Almost the same the original clean-css
, except for:
returnPromise
option is enabled by default, and cannot be disabled.- onRejected function receives an
Error
instead of anArray
. - All problems that clean-css considers as warnings, for example broken CSS syntax, are regarded as errors.
const CleanCssPromise = ; {};
License
ISC License © 2017 - 2019 Watanabe Shinnosuke