Possible to install just Bootstrap CSS with Bower?
I know one CSS-only Bootstrap packages in Bower: bootstrap-css-only
; However it comes with precompiled CSS but not SASS.
just add exclude
option in grunt bowerInstall task, and bowerInstall task will not inject the excluded file in the html file
bowerInstall: { app: { src: ['<%= yeoman.app %>/index.html'], exclude: ['bower_components/bootstrap/dist/js/bootstrap.js'], ignorePath: '<%= yeoman.app %>/' }},
Based on this answer, you could add this to .bowerrc
to delete the Bootstrap JS files:
{ "directory": "bower_components", "scripts": { "postinstall": "rm -rf bower_components/bootstrap-sass-official/assets/javascripts" }}