Recently I started switching a couple of projects to bootstrap 4 (and playing with the fantastic blaze components) when I noticed that BS4 no longer contains support for glyphicons.
Fortunately there is a npm package glyphicons-only-bootstrap. I can successfully
import 'glyphicons-only-bootstrap/css/bootstrap.css'
but that css contains a font definition that references relative URLs for the fonts from glyphicons-only-bootstrap/fonts
. I only got it to work by adding a symbolic link to the fonts directory in /public
and editing the css files to use absolute URLs for the fonts.
That seems sub-optimal, since it means I would need to continue making changes to the npm package assets when there is an update to said package.
How are other users solving this problem?