Can bower automatically write <script> tags into index.html?

CaptSaltyJack picture CaptSaltyJack · Sep 15, 2013 · Viewed 36.9k times · Source

I'm using yeoman's backbone generator, and I ran this:

bower install backbone.localStorage -S

And I manually had to insert this into index.html:

<script src="bower_components/backbone.localStorage/backbone.localStorage.js"></script>

Is there some way for bower to automatically insert <script> tags? I thought part of the benefit of bower was not having to figure out in which order to include your scripts?

Answer

mvilrokx picture mvilrokx · Jan 23, 2014

Just run

grunt bowerInstall 

after bower install