Use the Bootstrap config.json file with Bower

萝らか妹 提交于 2019-12-04 02:47:43

You can use bower to install bootstrap-sass-official or the less version if you want and as stated here https://github.com/twbs/bootstrap-sass#sass

You can import bootstrap-custom and comment out the components that you don't need.

I had the same issue like you, this is what my bootstrap-custom.scss file looks like

@import "bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/variables";
@import "bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins";
...
@import "bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/responsive-utilities";

And in my default.scss file i've put

@import "bootstrap";

And then compile!

Ps: i wanted to point out the link in a comment but need 50 reputation point :(

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