A optimizer for fis to compress css by using clean-css.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore npmignore update Apr 24, 2013
.npmignore npmignore update Apr 24, 2013
LICENSE.md
README.md Update README.md Jul 16, 2015
index.js clean css 3.0 Jul 16, 2015
package.json Update package.json Jul 16, 2015

README.md

fis-optimizer-clean-css

A optimizer for fis to compress css by using clean-css.

使用方式

在fis中默认内置

配置

在配置文件(默认fis-conf.js)配置 fis.config.set('settings.optimizer.clean-css', option)

eg:

fis.config.set('settings.optimizer.clean-css', {
    'keepBreaks': true
});

FIS3:

fis
.match('*.{scss,sass,less,css}', {
    optimizer: fis.plugin('clean-css',{
        //option
    })
})

option 全部参数可参见clean-css文档