You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vite-config is in a subdir (config/vite.config.ts)
The assets are in assets/common but will be copied in production to dist/-root folder, that is why i use transform() to correct the path.
Hi @Farnsi, I think I have run into the same problem. The font <link> items all have urls that point to fonts, but again the @font-face is not being generated.
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: