can be triggered from composer's script's section: compiles SCSS with compass|LESS
composer require eugene-matvejev/css-compiler
"EM\\CssCompiler\\ScriptHandler::generateCSS"
example
"scripts": {
"post-update-cmd": "@custom-events",
"post-install-cmd": "@custom-events",
"custom-events": [
"EM\\CssCompiler\\ScriptHandler::generateCSS"
]
}
- format: compression format
- input: array of relative paths to the composer.json, all files will be picked up recursivly inside of the directory
- output: relative file path to the composer.json, where to save output (hard-copy)
example
"extra": {
"css-compiler": [
{
"format": "compact",
"input": [
"tests/shared-fixtures/compass/app.scss"
],
"output": "var/cache/assets/compass.css"
},
{
"format": "compact",
"input": [
"tests/shared-fixtures/sass"
],
"output": "var/cache/assets/sass.css"
}
]
}