Skip to content
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

fix: module doesn't generate fallback fonts #304

Open
avinean opened this issue Jul 26, 2023 · 0 comments
Open

fix: module doesn't generate fallback fonts #304

avinean opened this issue Jul 26, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@avinean
Copy link

avinean commented Jul 26, 2023

🐛 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: npm@8.13.2
  • Builder: vite
  • User Config: devtools, modules, css, fontMetrics
  • Runtime Modules: @nuxtjs/fontaine@0.4.1
  • Build Modules: -
@avinean avinean added the bug Something isn't working label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants