Skip to content

How to add bootstrap-icons.scss to asset module #4123

Answered by BoDonkey
ezzle asked this question in Q&A
Discussion options

You must be logged in to vote

Well, it doesn't seem right to me, but looking around the web, it seems like Sass doesn't like relative URLs in npm packages. Again, it doesn't seem quite right, but you can get it working with two changes.

  1. create a new scss partial file and import it before the bootstrap-icons.scss file - not the .css file. In that new file, define the $bootstrap-icons-font-dir as /modules/asset/fonts.
  2. copy the two font files from node_modules/bootstrap-icons/font/fonts into the modules/asset/public/fonts folder.

This worked for me, just doesn't seem like you should have to do this.
Cheers,
Bob

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ezzle
Comment options

Comment options

You must be logged in to vote
1 reply
@ezzle
Comment options

Answer selected by ezzle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants