We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
0.58.5
If I add inlineImports: false to the presetWebFonts config I'm getting the following error/warn msg in Vite console:
inlineImports: false
presetWebFonts
[vite:css] @import must precede all other statements (besides @charset or empty @layer) 1 | __uno_hash_5892cf{--:'';}/* layer: imports */ 2 | @import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;700&family=Chivo&family=Trirong&display=swap'); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (x6)
here is my unocss config:
import { defineConfig, presetWebFonts, } from 'unocss' export default defineConfig({ presets: [ presetWebFonts({ provider: 'google', inlineImports: false, fonts: { hankengrotesk: 'Hanken Grotesk:300,400,700', chivo: 'Chivo', trirong: 'Trirong', }, }), ], })
https://stackblitz.com/edit/unocss-unocss-wo5zvl?file=src%2FApp.vue
With latest "vite": "^5.1.5" version
"vite": "^5.1.5"
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
UnoCSS version
0.58.5
Describe the bug
If I add
inlineImports: false
to thepresetWebFonts
config I'm getting the following error/warn msg in Vite console:here is my unocss config:
Reproduction
inlineImports: false
to yourpresetWebFonts
config.https://stackblitz.com/edit/unocss-unocss-wo5zvl?file=src%2FApp.vue
Other info
With latest
"vite": "^5.1.5"
versionThe text was updated successfully, but these errors were encountered: