I use SpBowerBundle and Twig tags to combine all my external .js libraries into one big juicy file.
However, assetic:dump also dumps individual files like jquery_js.js, since SpBowerBundle registers all those files (and I use @jquery_js references in twig templates)
Is there an option to dump only assets defined in twig templates?
No, currently not. The assets are registered before any template is parsed. But I'm curious if this is a huge deal breaker for you, since it is only a single file?
I use SpBowerBundle and Twig tags to combine all my external .js libraries into one big juicy file.
However, assetic:dump also dumps individual files like
jquery_js.js
, since SpBowerBundle registers all those files (and I use@jquery_js
references in twig templates)Is there an option to dump only assets defined in twig templates?