Skip to content

Update README.md #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ composer require "eugene-matvejev/css-compiler"
if you have problem with min-stability you can use this solution in '_require(-dev)_':
_example_:
```
"require": {
"eugene-matvejev/css-compiler": "^0.1",
"leafo/scssphp-compass": "@dev",
"leafo/scssphp": "@dev",
"leafo/scssphp": "@dev"
}
```

### add callback into into composer's __scripts__:
Expand All @@ -25,13 +27,13 @@ _example_:
```
_example_:
```
"scripts": {
"post-update-cmd": "@custom-events",
"post-install-cmd": "@custom-events",
"custom-events": [
"EM\\CssCompiler\\Handler\\ScriptHandler::compileCSS"
]
},
"scripts": {
"post-update-cmd": "@custom-events",
"post-install-cmd": "@custom-events",
"custom-events": [
"EM\\CssCompiler\\Handler\\ScriptHandler::compileCSS"
]
}
```
### add _css-compiler_ information inside of the _extra_ composer configuration
* _format_: compression format
Expand All @@ -40,6 +42,7 @@ _example_:

_example_:
```
"extra": {
"css-compiler": [
{
"format": "compact",
Expand All @@ -63,4 +66,5 @@ _example_:
"output": "var/cache/assets/compass.css"
}
]
}
```