🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

fis3-optimizer-css-compressor

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis3-optimizer-css-compressor

An optimizer for fis3 to compress css by using clean-css.

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

fis3-optimizer-css-compressor

Dependency Status devDependency Status NPM Version

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.

Keywords

fis

FAQs

Package last updated on 30 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts