fontaine
fontaine copied to clipboard
fix: module doesn't generate fallback fonts
đ The bug
In my case there is a font-family Test
.
In build mode nothing changes. No fallback font-face. No fallback in font-family value
In dev mode. No fallback font-face. Fallback in font-family value appears font-family: 'Test', 'Test fallback'
đ ī¸ To reproduce
https://stackblitz.com/edit/github-hjovjz?file=nuxt.config.ts
đ Expected behaviour
@font-face {
font-family: 'Test';
...
}
* {
font-family: Test;
}
Code above should be transformed to code below
@font-face {
font-family: 'Test fallback';
...
}
*{
font-family: 'Test', 'Test fallback';
}
âšī¸ Additional context
- Operating System: Darwin
- Node Version: v18.6.0
- Nuxt Version: 3.6.5
- Nitro Version: 2.5.2
- Package Manager: [email protected]
- Builder: vite
- User Config: devtools, modules, css, fontMetrics
- Runtime Modules: @nuxtjs/[email protected]
- Build Modules: -