Skip to content

learn-symfony/css-compiler

Repository files navigation

Scrutinizer Code Quality codecov SensioLabsInsight

Latest Stable Version Total Downloads License composer.lock

PHP CSS Compiler

can be triggered from composer's script's section: compiles SCSS with compass|LESS

How to use:

composer require "eugene-matvejev/css-compiler"

add callback into into composer's scripts:

"EM\\CssCompiler\\ScriptHandler::generateCSS"

example:

"scripts": {
    "post-update-cmd": "@custom-events",
    "post-install-cmd": "@custom-events",
    "custom-events": [
        "EM\\CssCompiler\\ScriptHandler::generateCSS"
    ]
}

add css-compiler information inside of the extra composer configuration

  • 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"
        }
    ]
}

About

generate CSS from SCSS|LESS, has Composer callback script

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy