Bootstrap 3 曾经有这个自定义选项:https://getbootstrap.com/docs/3.3/customize/
但是,我无法找到 Bootstrap 4 的此类链接。我只是构建一个简单的网站,并且肯定不会使用它 80% 的功能。我也不想要大部分 JS 功能。我该怎么办?
据我所知,Bootstrap 4 中尚未提供此功能。
但您可以修改 SCSS 文件并构建 Bootstrap css 和 js 文件。
这就是 @mdo 所说的
这本质上与在 bootstrap.scss 中注释掉 import 语句相同。我知道在共享组件方面还有更多内容,但基本上是 1:1。以前有人要求过,当时我是通过的,现在仍然是。
检查 Bootstrap 问题/功能请求here
Example
@import "node_modules/bootstrap/scss/functions";
@import "node_modules/bootstrap/scss/variables";
@import "node_modules/bootstrap/scss/mixins";
@import "node_modules/bootstrap/scss/root";
@import "node_modules/bootstrap/scss/print";
@import "node_modules/bootstrap/scss/reboot";
@import "node_modules/bootstrap/scss/type";
//@import "node_modules/bootstrap/scss/images";
@import "node_modules/bootstrap/scss/code";
@import "node_modules/bootstrap/scss/grid";
@import "node_modules/bootstrap/scss/tables";
@import "node_modules/bootstrap/scss/forms";
@import "node_modules/bootstrap/scss/buttons";
@import "node_modules/bootstrap/scss/transitions";
Update:
这是一个非常好的在线Bootstrap定制器Bootstrap.build
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)