Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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/ to config.yml file:
            file: %kernel.root_dir%/../vendor/leafo/lessphp/
            apply_to: "\.less$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment