Created
May 14, 2012 22:16
-
-
Save rande/2697784 to your computer and use it in GitHub Desktop.
assetic assets packages
This file contains hidden or 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
assetic: | |
debug: false | |
use_controller: false | |
read_from: %kernel.root_dir%/../web | |
write_to: %kernel.root_dir%/../web | |
dump_on_warmup: false # do not compile on cache warmup | |
bundles: [] # disable bundles parsing | |
filters: | |
yui_js: | |
jar: "%kernel.root_dir%/../bin/yuicompressor-2.4.7.jar" | |
yui_css: | |
jar: "%kernel.root_dir%/../bin/yuicompressor-2.4.7.jar" | |
assets: | |
common: | |
inputs: | |
- %kernel.root_dir%/../web/js/main.js | |
- %kernel.root_dir%/../web/js/search_booking.js | |
filters: | |
- yui_js | |
main: | |
inputs: | |
- %kernel.root_dir%/../web/css/bootstrap.css | |
- %kernel.root_dir%/../web/css/template_homepage.css | |
- %kernel.root_dir%/../web/css/main.css | |
filters: | |
- yui_css |
This file contains hidden or 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
rande@nono-2 { ~/Projects/php/foobar } | |
$ app/console assetic:dump | |
Dumping all dev assets. | |
Debug mode is on. | |
[file+] /Users/rande/Projects/php/foobar/app/../web/assetic/common.js | |
[file+] /Users/rande/Projects/php/foobar/app/../web/assetic/main.css |
This file contains hidden or 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
<link rel="stylesheet" href="{{ asset('assetic/main.css') }}" type="text/css" media="screen"> | |
<script src="{{ asset('assetic/common.js') }}" type="text/javascript"></script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@rande it seems the
@SomeBundle/Foo/bar.js
syntax does not work here, do you know something about that?