Bri*_*ian 24 twitter-bootstrap angularjs bower angular-ui-bootstrap
通过Yeoman开始一个新的Angular项目询问你是否想要包含Twitter Bootstrap(我正在使用Sass风味).这样做包括样式和脚本.但是,我想使用UI Bootstrap而不是Bootstrap的脚本(依赖于jQuery).
那么,是否可以在Bower中仅安装Bootstrap的样式(最好是在Sass中)?或者我只需要手动下载并包含Bootstrap样式?
xia*_*boa 14
只需exclude在grunt bowerInstall任务中添加选项,bowerInstall任务就不会在html文件中注入被排除的文件
bowerInstall: {
app: {
src: ['<%= yeoman.app %>/index.html'],
exclude: ['bower_components/bootstrap/dist/js/bootstrap.js'],
ignorePath: '<%= yeoman.app %>/'
}
},
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8597 次 |
| 最近记录: |