Bootstrap 不使用 webpack 无法找到字体

Bootstrap not working with webpack fails to find fonts

我正在尝试使用 webpack 4 捆绑我的项目。

bootstrap 的结构:

public
    css
    images
    js
    vendor
        bootstrap\dist
            css
            fonts
                glyphicons-halflings-regular.eot
                glyphicons-halflings-regular.svg
                glyphicons-halflings-regular.ttf
                glyphicons-halflings-regular.woff
                glyphicons-halflings-regular.woff2  
            js

webpack 无法定位 "fonts" 并在构建时抛出错误

我解决了它,因为我使用 bootstrap 4 和 Bootstrap v4 删除了 glyphicon 字体 altogether.so,错误发生而不是降级版本 3 及以下版本。

Font Awesome 可以替代 bootstarp 4 上的字形。