-
Hello, I was trying to add bootstrap-fonts with Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Make sure to import the /** Import Bootstrap Icons */
@import "bootstrap-icons/font/bootstrap-icons.scss"; And, don't forget to copy Then it should work: |
Beta Was this translation helpful? Give feedback.
-
I did the same (but instead of copying use the module.toml file to mount the node_modules dir), but I am running in a strange issue. The request woff file is surrounded by quotes and therefore not found: Looking in the bootstrap-icons.scss file in the node_modules dir, I see there is a variables (with quotes):
When I define this variable in _variables.scss without quotes, the url is correct:
Anyone an idea what is going on here? The fix seems a bit weird to me, but hey, it does work. |
Beta Was this translation helpful? Give feedback.
-
Updated method to include the fonts: Subject: [PATCH] feat: include bootstrap-icons fonts
---
Index: config/_default/module.toml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/config/_default/module.toml b/config/_default/module.toml
--- a/config/_default/module.toml (revision 0dfb77066bfd161d001af579867dcd16532d81fd)
+++ b/config/_default/module.toml (date 1709887773417)
@@ -26,6 +26,10 @@
source = "node_modules/@tabler/icons/icons"
target = "assets/svgs/tabler-icons"
+[[mounts]]
+ source = "node_modules/bootstrap-icons/font/fonts"
+ target = "static/fonts"
+
[[mounts]]
source = "assets"
target = "assets" |
Beta Was this translation helpful? Give feedback.
Make sure to import the
scss
file to./assets/scss/app.scss
:And, don't forget to copy
./node_modules/bootstrap-icons/font/fonts/
to./static/fonts/
Then it should work: