Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twitter bootstrap 从引导css中删除引导图标_Twitter Bootstrap_Webpack_Sass_Glyphicons - Fatal编程技术网

Twitter bootstrap 从引导css中删除引导图标

Twitter bootstrap 从引导css中删除引导图标,twitter-bootstrap,webpack,sass,glyphicons,Twitter Bootstrap,Webpack,Sass,Glyphicons,我想从Bootstraop css中删除Bootstrap图标包,因为它太重了,而且我使用的字体太棒了。有没有办法把它去掉 我正在使用WebPack将scss文件编译为css 我正在使用最新版本的引导。我已经安装了bootstrap-sass和@import“~bootstrap-sass/assets/stylesheets/bootstrap”导入引导 如果您需要任何进一步的信息,请评论 而不是导入引导sass/assets/stylesheets/bootstrap 只需在导入evryth

我想从Bootstraop css中删除Bootstrap图标包,因为它太重了,而且我使用的字体太棒了。有没有办法把它去掉

我正在使用WebPack将scss文件编译为css

我正在使用最新版本的引导。我已经安装了
bootstrap-sass
@import“~bootstrap-sass/assets/stylesheets/bootstrap”导入引导


如果您需要任何进一步的信息,请评论

而不是导入
引导sass/assets/stylesheets/bootstrap
只需在导入evrything时创建一个自定义文件,而不需要像这样的glyphicon

bootstrap sass/assets/stylesheets/bootstrap
的内容是这样的,我在导入glyphicon的行上做了一些修改

// Core variables and mixins
@import "bootstrap/variables";
@import "bootstrap/mixins";

// Reset and dependencies
@import "bootstrap/normalize";
@import "bootstrap/print";

// Here is where the glyphicons are import
// I comment just this line and every thing will work like you want without the glyphicons
//@import "bootstrap/glyphicons"; 

// Core CSS
@import "bootstrap/scaffolding";
@import "bootstrap/type";
@import "bootstrap/code";
@import "bootstrap/grid";
@import "bootstrap/tables";
@import "bootstrap/forms";
@import "bootstrap/buttons";

// Components
@import "bootstrap/component-animations";
@import "bootstrap/dropdowns";
@import "bootstrap/button-groups";
@import "bootstrap/input-groups";
@import "bootstrap/navs";
@import "bootstrap/navbar";
@import "bootstrap/breadcrumbs";
@import "bootstrap/pagination";
@import "bootstrap/pager";
@import "bootstrap/labels";
@import "bootstrap/badges";
@import "bootstrap/jumbotron";
@import "bootstrap/thumbnails";
@import "bootstrap/alerts";
@import "bootstrap/progress-bars";
@import "bootstrap/media";
@import "bootstrap/list-group";
@import "bootstrap/panels";
@import "bootstrap/responsive-embed";
@import "bootstrap/wells";
@import "bootstrap/close";

// Components w/ JavaScript
@import "bootstrap/modals";
@import "bootstrap/tooltip";
@import "bootstrap/popovers";
@import "bootstrap/carousel";

// Utility classes
@import "bootstrap/utilities";
@import "bootstrap/responsive-utilities";

```

您使用的是哪个版本的引导?您是直接引用引导CSS还是从源代码构建它?创建自定义scss文件,在其中导入要使用且不导入的引导sass组件。scss
@DavidG我已更新我的question@yvesdaxmaz这正是我想知道的。你能用代码回答这个问题吗?这对引导版本4和更高版本是一样的吗?无论如何,谢谢您的帮助。欢迎您使用引导4。这里没有glyphicon组件,请看这里,导入所有断言的文件是这样的,您的意思是引导4中没有glyphicon?我还没有开始使用Bootstrap 4。是的,他们已经决定将其从Bootstrap中删除,并建议使用glyphicons作为外部组件,或者感谢您让我知道这一点。谢谢你的帮助。快乐编码。