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
And then set this css inside assets/css/tailwind.css:
html {
@apply font-body;
}
Basically, nuxt/fonts is correctly picking up and downloading this font with everything seemingly working correctly, but it does not create the preload-tag.
@danielroe
It seems the preload-tag is not generated for fonts, that are defined in
tailwind.config.ts
.I define my font in tailwind-config like this:
And then set this css inside
assets/css/tailwind.css
:Basically,
nuxt/fonts
is correctly picking up and downloading this font with everything seemingly working correctly, but it does not create the preload-tag.Here is a stackblitz:
https://stackblitz.com/edit/nuxt-starter-xrzkqs?file=app.vue
If you add this to
app.vue
, the preload-tag gets added correctly:Originally posted by @codeflorist in #24 (comment)
The text was updated successfully, but these errors were encountered: