yeoman/generator-webapp — pull request #123 by stephenplusplus (2013-08-08 17:36:05+00:00)
Title: add grunt-bower-install. closes #121.

This is an initial PR to add in `grunt-bower-install`, should we decide we want it in cases where a user opts to not use RequireJS.

Something unfortunate is I had to move Modernizr to a new `scripts/vendor.js` usemin block. The block in the generated `index.html` will look like this:

```html

```

Anything inside of the `` block will be replaced with the installed Bower packages. Since Modernizr is a Bower component, it will be shoved in. Without removing the former Modernizr include from `

`, it would be on the page twice.

From [Modernizr Docs](http://modernizr.com/docs/#installing):
> Drop the script tags in the `head` of your HTML. For best performance, you should have them follow after your stylesheet references. The reason we recommend placing Modernizr in the head is two-fold: the HTML5 Shiv (that enables HTML5 elements in IE) must execute before the `

`, and if you’re using any of the CSS classes that Modernizr adds, you’ll want to prevent a FOUC.

> If you don't support IE8 and don't need to worry about FOUC, feel free to include modernizr.js whereever.

Let me know if you have any ideas for how we can implement this!