我使用 yeoman angular-generator 来生成项目和 gruntfile.js。
我有 bower.json:
{
"name": "boot-ang",
"version": "0.0.0",
"dependencies": {
"angular": "1.2.15",
"json3": "~3.2.6",
"es5-shim": "~2.1.0"
},
"devDependencies": {
"angular-mocks": "1.2.15",
"angular-scenario": "1.2.15",
"bootstrap": "~3.1.1",
"angular-route": "~1.2.16"
}
}
这是我的 index.html 的一部分
<!-- build:js scripts/vendor.js -->
<!-- bower:js -->
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<!-- endbower -->
<!-- endbuild -->
当我运行 grunt serve 时,angular-route 正在从 bower:js 中删除。为什么?