I'm building a map application using the Yeoman AngularJS generator. I've installed angular-google-maps using bower. If I use "grunt serve" to test the app, it works fine and the map loads correctly. If I simply issue "grunt" to build the app, it fails and says "Module 'google-maps' is not available! You either mispelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument."
I'm not really sure why it doesn't work with the default task. I ran "grunt bowerInstall" and confirmed index.html does have a correct reference to angular-google-maps. I'm loading the Google Maps API ahead of it as well.
This is my app.js
angular
.module('webappApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'google-maps'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl'
})
.otherwise({
redirectTo: '/'
});
});