Created
December 4, 2012 14:54
-
-
Save monbro/4204761 to your computer and use it in GitHub Desktop.
YAML Config to use COMPASS in Symfony2: app/config/config.yml AND app/config/assets.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config.yml | |
################################### | |
# first line | |
imports: | |
- { resource: assets.yml } | |
# Assetic Configuration | |
assetic: | |
debug: %kernel.debug% | |
use_controller: false | |
bundles: [ ] | |
#java: /usr/bin/java | |
filters: | |
compass: | |
bin: /var/lib/gems/1.8/gems/compass-0.12.2/bin/compass | |
apply_to: "\.scss$" | |
cssrewrite: ~ | |
#closure: | |
# jar: %kernel.root_dir%/Resources/java/compiler.jar | |
#yui_css: | |
# jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar | |
# assets.yml, same dir "app/config" | |
################################### | |
assetic: | |
assets: | |
jquery: | |
inputs: | |
- '%kernel.root_dir%/Resources/public/js/jquery-1.8.2.min.js' | |
jquery_lib: | |
inputs: | |
- '%kernel.root_dir%/Resources/public/js/jquery_lib/*.js' | |
sass: | |
inputs: | |
- '%kernel.root_dir%/Resources/public/sass/style.scss' | |
# actually i dont use this, but maybe later | |
parameters: | |
# Assetic | |
assetic.filter.compass.images_dir: %kernel.root_dir%/../web/images | |
assetic.filter.compass.http_path: /images |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment