Compress CSS for stc
npm install stc-css-compress
// stc.config.js
var cssCompress = require('stc-css-compress');
stc.workflow({
cssCompress: {plugin: cssCompress, include: /\.css$/, options: {}}
})
default options is:
{
removeComment: true,
removeLastSemicolon: true,
removeEmptySelector: true,
overrideSameProperty: true,
shortValue: true,
mergeProperty: true,
sortProperty: true,
sortSelector: true,
mergeSelector: true,
propertyToLower: true
}