How to add static font files as a fresh plugin #2391
Unanswered
CarcajadaArtificial
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The only way to do this without relying on Fresh's |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there! I'm currently developing a component library for Fresh. Right now, I'm working on setting up the plugin aspect of the library. I've managed to configure all the static CSS and islands successfully. However, I'm exploring options (if feasible) to include static font files (.woff2 and similar) without requiring users of my library to manually add them to the /static directory and import them in the /routes/_app.tsx function.
I asked around on the official Discord and the Deno AI Helper Bot answered that it is possible using the
staticAssets
attribute but it also warned me about unavailable documentation for said attribute and suggested that I should experiment a bit. So I did, and I con't find any way for it to work so I believe the bot was completely hallucinating?Appreciate any guidance! 😄
Beta Was this translation helpful? Give feedback.
All reactions