File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 11# css-compiler
22compiles 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)
You can’t perform that action at this time.
0 commit comments