Spea / SpBowerBundle

Symfony2 Bundle to handle asset dependencies with bower
231 stars 44 forks source link

Include dependent assets #104

Open mieszko4 opened 10 years ago

mieszko4 commented 10 years ago

In my bower.json I have dependency on {"fundation": "zurb/bower-foundation#~5.3.3"} package. I then include this bower package using:

{% javascripts "@foundation_js" %}<script src="{{ asset_url }}"></script>{% endjavascripts %}

However, I get an error message on front-end saying that jQuery is not defined. This is because it only includes Zurb Foundation main js file and not its dependencies, i.e. jQuery in this case.

I think it would be great if dependencies were resolved automatically.