Skip to content

Commit 32b3d47

Browse files
update ready
1 parent f860b7d commit 32b3d47

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,52 @@
11
# css-compiler
22
compiles SASS/LESS and Compass, available though Composer
3+
4+
5+
# How to use:
6+
add into composer __scripts__ directory:
7+
```
8+
"EM\\CssCompiler\\Handler\\ScriptHandler::compileCSS"
9+
```
10+
11+
example:
12+
```
13+
"scripts": {
14+
"post-update-cmd": "@custom-events",
15+
"post-install-cmd": "@custom-events",
16+
"custom-events": [
17+
"EM\\CssCompiler\\Handler\\ScriptHandler::compileCSS"
18+
]
19+
},
20+
```
21+
22+
##how to trigger
23+
add _css-compiler_ information inside of the _extra_ composer configuration
24+
```
25+
"css-compiler": [
26+
{
27+
"format": "compact",
28+
"input": [
29+
"tests/shared-fixtures/scss"
30+
],
31+
"output": "var/cache/assets/scss.css"
32+
},
33+
{
34+
"format": "compact",
35+
"input": [
36+
"tests/shared-fixtures/sass"
37+
],
38+
"output": "var/cache/assets/sass.css"
39+
},
40+
{
41+
"format": "compact",
42+
"input": [
43+
"tests/shared-fixtures/compass/app.scss"
44+
],
45+
"output": "var/cache/assets/compass.css"
46+
}
47+
]
48+
```
49+
where:
50+
_format_: compression format
51+
_input_: array of routes, all files inside of the route if it is directory will be picked up
52+
_output_: file where it should put content (hard-copy)

0 commit comments

Comments
 (0)