Skip to content

Instantly share code, notes, and snippets.

@gereon
Created July 6, 2012 14:53
Show Gist options
  • Save gereon/3060625 to your computer and use it in GitHub Desktop.
Save gereon/3060625 to your computer and use it in GitHub Desktop.
Assetic `less` Configuration and Routing: How It Works

Assetic less configuration and Routing: How It Works

In dev you have to make sure that in your security.yml the security checks are disabled for the resource routings:

    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false

In prod environment you need to dump the assets with the command:

    ./app/console assetic:dump —env=prod —no-debug

See also: https://groups.google.com/forum/?fromgroups#!topic/symfony2/u49SHQaxZS0

See further: How to integrate the lessphp filter: https://gist.github.com/3049271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment