-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
# lasso-clean-css | ||
|
||
Plugin for [Lasso.js](https://github.com/lasso-js/lasso) that adds support for minifying CSS using [clean-css](https://github.com/jakubpawlowicz/clean-css). | ||
[Lasso.js](https://github.com/lasso-js/lasso) plugin to minify CSS using | ||
[clean-css](https://github.com/jakubpawlowicz/clean-css). | ||
|
||
|
||
## Installation | ||
|
||
```text | ||
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](https://github.com/jakubpawlowicz/clean-css) | ||
options can be passed through `config`. The revelant portion of configuration should look something like this: | ||
|
||
```json | ||
{ | ||
"plugins": [ | ||
"lasso-less", | ||
{ | ||
"plugin": "lasso-clean-css", | ||
"config": {...} | ||
} | ||
], | ||
"minify": false | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters