public
Last active — forked from Dattaya/1. README.md

Symfony 2.1: How to integrate assetic less filter with lessphp

  • Download Gist
gistfile1.md
Markdown

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$"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.