yomed / lasso-clean-css

Lasso.js plugin to minify CSS using clean-css

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lasso-clean-css

Lasso.js plugin to minify CSS using clean-css.

Installation

npm install lasso-clean-css --save

Usage

This plugin can be included through Lasso configuration. You should disable the default Lasso.js minifier, otherwise both minification transforms will execute. Any clean-css options can be passed through config. The revelant portion of configuration should look something like this:

{
    "plugins": [
        "lasso-less",
        {
            "plugin": "lasso-clean-css",
            "config": {
                "aggressiveMerging": false
            }
        }
    ],
    "minify": false
}

About

Lasso.js plugin to minify CSS using clean-css

License:MIT License


Languages

Language:JavaScript 100.0%