HEre's my index.html
:
<script src="/app/bower_components/angular/angular.js"></script>
<script src="/app/bower_components/angular-route/angular-route.js"></script>
<script src="/app/bower_components/angular-resource/angular-resource.js"></script>
<script src="/app/bower_components/angular-cookies/angular-cookies.js"></script>
<script src="/app/bower_components/angular-sanitize/angular-sanitize.js"></script>
In my express configuration, I have:
app.use(minify());
app.use('/app', express["static"](path.resolve('app')));
app.use('/public', express["static"](path.resolve('public')));
If I minify, I get an error in my AngularJS
code:
Failed to instantiate module appApp due to: [$injector:unpr] Unknown provider: e
If I don't minify, all is well. What am I doing wrong?