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

Font imports from preprocessors seem to be ignored #372

Open
cewald opened this issue Feb 1, 2024 · 0 comments
Open

Font imports from preprocessors seem to be ignored #372

cewald opened this issue Feb 1, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cewald
Copy link

cewald commented Feb 1, 2024

🐛 The bug

If I use @font-face declarations that are imported in a global CSS file like a @import '~/fonts.scss' statement in main.scss via an CSS preprocessor like SASS, nuxt-modules/fontaine won't reognize those fonts unless I declare them manually in fontMetrics, or I import the fonts CSS directly in Nuxt config, or import the fonts CSS in the App.vue.

🛠️ To reproduce

https://stackblitz.com/edit/github-jzaonw

🌈 Expected behaviour

It would be nice to consider such imports to save redundant code or even support this kind of "code-paradigm".

ℹ️ Additional context

No response

@cewald cewald added the bug Something isn't working label Feb 1, 2024
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