How do I import Icomoon icons for a single page? #16113
Unanswered
abhijit-hota
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've downloaded some glyphs from Icomoon.
I have a
style.css
file and afonts
folder which contains theeot
,woff
,svg
andttf
files.One solution (workaround?) I found was:
fonts
folder into thepublic
folder.style.css
(which contains the required styles for icons) as a global style in_app.js
.Source: https://maferland.com/blog/icomoon-font-familly-nextjs
However, I don't need the icons for all my pages. I'm not sure whether importing them as a global style is the best way to do this as it may increase the page load (albeit by a few KBs). Or am I missing something?
Any pointers will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions