-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Type custom did not generate @font-face #47
Comments
Hello @Farnsi! Thanks for opening this issue, we will get back to you soon! If you love our work, please consider sponsoring us |
Try to double check the path to your fonts in assets (is the assets library under src/ and your config isn't?) |
Hi @Farnsi, I think I have run into the same problem. The font |
Demo URL
No response
What happened?
I can not find anywhere the following @font-face-code in the generated files:
unplugin-fonts/src/loaders/custom.ts
Lines 210 to 218 in 941d019
vite-config is in a subdir (
config/vite.config.ts
)The assets are in
assets/common
but will be copied in production todist/
-root folder, that is why i usetransform()
to correct the path.unplugin-fonts config:
Output from console.log above
index.html contains
The font is loaded, but it can't be displayed, cause there is no css code for @font-face.
Reproduction steps
Relevant log output
No response
What browsers are you seeing the problem on?
No response
What is your operating system?
No response
The text was updated successfully, but these errors were encountered: