angularjs – Grunt Wiredep不会在Yeoman Angular Tutorial中注册bootstrap css文件

前端之家收集整理的这篇文章主要介绍了angularjs – Grunt Wiredep不会在Yeoman Angular Tutorial中注册bootstrap css文件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在浏览关于使用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文件中?

@H_403_6@
将引导程序的覆盖代码添加到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/

猜你在找的Angularjs相关文章