angularjs – Grunt Wiredep不会在Yeoman Angular Tutorial中注
发布时间:2020-12-17 07:39:52 所属栏目:安全 来源:网络整理
导读:我正在浏览关于使用Yeoman( http://yeoman.io/codelab.html)设置AngularJS应用程序的教程,并且Bootstrap的CSS文件未被包含在index.html文件中.所以当我运行grunt服务时,该页面缺少所有的Bootstrap样式,不同于教程图像中显示的内容. Bootstrap JavaScript文件
我正在浏览关于使用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/ (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |