yeoman angular generator - generated index.html

半世苍凉 提交于 2019-12-04 02:49:50
Stephen

That's grunt-bower-install, which was added to v0.7.0 of the Angular generator.

Initially, when you scaffolded the application, it automatically wired up your Bower packages to your index.html file. Going forward, after installing or un-installing a Bower package, you can run grunt bower-install to update the references inside of your <!-- bower:* -->...<!-- endbower --> blocks.

Also, notice in the <head> section, there is a <!-- bower:css --> block, which will reference your Bower packages' CSS files.

Update - 8/7/2014

If grunt-bower-install doesn't work try(in order): grunt wiredep, grunt bower-install, grunt bowerInstall

Make sure to bower install --save to add it to bower.json as a dependency.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!