-
Hi! I'm new to Mint and loving it, but I cannot for the life of me figure out how to get
The docs feel a little unclear on this. Here's the example from the Styling Elements page:
This leaves me with a couple questions:
I've looked at what Everything I've tried that compiles seems to return a 200 with an empty response, and the font file does not appear in the
Is there any way to do this without dropping down to the JS level? If so, could the docs be clarified on how to do it? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved it; the font file has to be in For example, with I might open a PR for the docs on this—it'd be useful for people who failed to read about the |
Beta Was this translation helpful? Give feedback.
Solved it; the font file has to be in
/public
, which I did not know about.For example, with
/public/FontFile.woff2
, then the@font-face
rule should point tourl("FontFile.woff2")
, and no@asset
directive is needed.I might open a PR for the docs on this—it'd be useful for people who failed to read about the
public
dir like me :)