可以用Bower安装Bootstrap CSS吗?

Bri*_*ian 24 twitter-bootstrap angularjs bower angular-ui-bootstrap

通过Yeoman开始一个新的Angular项目询问你是否想要包含Twitter Bootstrap(我正在使用Sass风味).这样做包括样式和脚本.但是,我想使用UI Bootstrap而不是Bootstrap的脚本(依赖于jQuery).

那么,是否可以在Bower中仅安装Bootstrap的样式(最好是在Sass中)?或者我只需要手动下载并包含Bootstrap样式?

tun*_*ngd 17

我知道一个CSS-只有引导包在鲍尔:bootstrap-css-only; 然而,它带有预编译的CSS但不是SASS.


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)