这是我的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>
在我的快速配置中,我有:
app.use(minify());
app.use('/app', express["static"](path.resolve('app')));
app.use('/public', express["static"](path.resolve('public')));
如果我缩小,我的AngularJS
代码中会出现错误:
Failed to instantiate module appApp due to: [$injector:unpr] Unknown provider: e
如果我不缩小,一切都很好。我究竟做错了什么?