fontaine icon indicating copy to clipboard operation
fontaine copied to clipboard

fix: module doesn't generate fallback fonts

Open avinean opened this issue 1 year ago â€ĸ 0 comments

🐛 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: -

avinean avatar Jul 26 '23 12:07 avinean