Skip to content

Instantly share code, notes, and snippets.

@gereon
Forked from Dattaya/1. README.md
Created July 4, 2012 20:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gereon/3049271 to your computer and use it in GitHub Desktop.
Save gereon/3049271 to your computer and use it in GitHub Desktop.
Symfony 2.1: How to integrate assetic less filter with lessphp

Symfony2.0.10. How to integrate assetic lessphp filter.

  • Add the following lines of code to the composer.json file:
"leafo/lessphp": "*"
  • Run composer install
  • The best approach is to add file: %kernel.root_dir%/../vendor/leafo/lessphp/lessc.inc.php to config.yml file:
#...
assetic:
    #...
    filters:
        lessphp:
            file: %kernel.root_dir%/../vendor/leafo/lessphp/lessc.inc.php
            apply_to: "\.less$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment