Skip to content

Instantly share code, notes, and snippets.

@rande
Created May 14, 2012 22:16
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rande/2697784 to your computer and use it in GitHub Desktop.
Save rande/2697784 to your computer and use it in GitHub Desktop.
assetic assets packages
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
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
<link rel="stylesheet" href="{{ asset('assetic/main.css') }}" type="text/css" media="screen">
<script src="{{ asset('assetic/common.js') }}" type="text/javascript"></script>
@beberlei
Copy link

beberlei commented Jun 7, 2013

@rande it seems the @SomeBundle/Foo/bar.js syntax does not work here, do you know something about that?

@docteurklein
Copy link

@beberlei @SomeBundle/Resources/public/js/Foo/bar.js should work.

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