- can be triggered from composer's script's session: compiles LESS/SASS/Compass
composer require "eugene-matvejev/css-compiler":"@dev"
"EM\\CssCompiler\\Handler\\ScriptHandler::compileCSS"
example:
"scripts": {
"post-update-cmd": "@custom-events",
"post-install-cmd": "@custom-events",
"custom-events": [
"EM\\CssCompiler\\Handler\\ScriptHandler::compileCSS"
]
},
- format: compression format
- input: array of routes, all files inside of the route if it is directory will be picked up
- output: file where it should put content (hard-copy)
example:
"css-compiler": [
{
"format": "compact",
"input": [
"tests/shared-fixtures/scss"
],
"output": "var/cache/assets/scss.css"
},
{
"format": "compact",
"input": [
"tests/shared-fixtures/sass"
],
"output": "var/cache/assets/sass.css"
},
{
"format": "compact",
"input": [
"tests/shared-fixtures/compass/app.scss"
],
"output": "var/cache/assets/compass.css"
}
]