- Add the following lines of code to the
composer.jsonfile:
"leafo/lessphp": "*"
- Run
composer install - The best approach is to add
file: %kernel.root_dir%/../vendor/leafo/lessphp/lessc.inc.phpto config.yml file:
#...
assetic:
#...
filters:
lessphp:
file: %kernel.root_dir%/../vendor/leafo/lessphp/lessc.inc.php
apply_to: "\.less$"