fis3-optimizer-css-compressor
v0.2.1
Published
An optimizer for fis3 to compress css by using clean-css.
Downloads
1
Readme
fis3-optimizer-css-compressor
An optimizer for fis3 to compress css files by using clean-css.
Notice: The version 0.1.x
using clean-css 3.x
version, thus the latest version 0.2.x
using clean-css 4.x
version.
The version 0.1.x
has the following default config:
{
advanced: false,
aggressiveMerging: false,
shorthandCompacting: false,
compatibility: 'ie7',
keepBreaks: true,
relativeTo: file.dirname
}
The version 0.2.x
has the following default config:
{
compatibility: 'ie8',
rebaseTo: file.dirname
}
How to use
Install
npm install fis3-optimizer-css-compressor -g
Add configure to fis-conf.js
fis.media('prod').match('*.css', {
optimizer: 'css-compressor'
});
Custom compress options:
fis.match('*.css', {
optimizer: fis.plugin('css-compressor', {
advanced: true
})
});
Available options, please refer to clean-css.