Skip to content

stcjs/stc-css-compress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stc-css-compress

Compress CSS for stc

Install

npm install stc-css-compress

How to use

// stc.config.js

var cssCompress = require('stc-css-compress');

stc.workflow({
  cssCompress: {plugin: cssCompress, include: /\.css$/, options: {}}
})

options

default options is:

{
  removeComment: true,
  removeLastSemicolon: true, 
  removeEmptySelector: true, 
  overrideSameProperty: true, 
  shortValue: true, 
  mergeProperty: true, 
  sortProperty: true, 
  sortSelector: true, 
  mergeSelector: true, 
  propertyToLower: true 
}