我正在浏览关于使用Yeoman(
http://yeoman.io/codelab.html)设置AngularJS应用程序的教程,并且Bootstrap的CSS文件未被包含在index.html文件中.所以当我运行grunt服务时,该页面缺少所有的Bootstrap样式,不同于教程图像中显示的内容.
Bootstrap JavaScript文件包含在index.html文件中.
这是正常的行为还是我想手动包含它?我希望运行Grunt Wiredep将引导程序css文件包含在<! - bower:css - ><! - endbower - >之间.占位符在index.html文件中?
将引导程序的覆盖代码添加到bower.json文件(不要在bower_components中编辑任何内容)
"dependencies": { ... },"overrides": { "bootstrap": { "main": [ "dist/js/bootstrap.js","dist/css/bootstrap.css","less/bootstrap.less" ] } }
http://blog.getbootstrap.com/2015/06/15/bootstrap-3-3-5-released/