Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Symfony2.1.*. How to integrate assetic lessphp filter.

Symfony2.1. How to integrate assetic lessphp filter.

  • Add the following package to your composer.json:
"require": {
    ...
    "leafo/lessphp": "dev-master",
    ...
}
  • Run php composer.phar update;
#...
assetic:
    #...
    filters:
        lessphp:
            file: %kernel.root_dir%/../vendor/leafo/lessphp/lessc.inc.php
            apply_to: "\.less$"
@ollietb

This comment has been minimized.

Copy link
Owner Author

@ollietb ollietb commented Jul 10, 2012

I've updated this for Symfony2.1 using composer https://gist.github.com/3082684

@jaywilliams

This comment has been minimized.

Copy link

@jaywilliams jaywilliams commented Aug 2, 2012

Once you've added those lines, you'll want to run:

php composer.phar update leafo/lessphp

@darklow

This comment has been minimized.

Copy link

@darklow darklow commented Dec 17, 2012

Any ideas on how to make lessphp track @import files for changes too?

@Nek-

This comment has been minimized.

Copy link

@Nek- Nek- commented Feb 2, 2013

Thanks. Usefull :) .

@jhovanic

This comment has been minimized.

Copy link

@jhovanic jhovanic commented May 27, 2013

Why all the files in lessphp folder inside the vendor get ignored by git ? I have to install lessphp everytime I clone the repo! :S

@Paulpro

This comment has been minimized.

Copy link

@Paulpro Paulpro commented Jun 2, 2013

Shouldn't you be installing all your vendors whenever you clone the repository. You're whole vendor folder should be .gitignore'd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.