We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 36de576 + c6ea5f6 commit f6273c4Copy full SHA for f6273c4
README.md
@@ -32,6 +32,24 @@ Only needed if using local/custom fonts
32
import 'virtual:fonts.css'
33
```
34
35
+If using `nuxt@>3` or `nuxt-edge`, you can leverage the virtual file system to import the generated CSS.
36
+```ts
37
+// nuxt.config.ts
38
+import { defineNuxtConfig } from 'nuxt'
39
+import Fonts from 'vite-plugin-fonts'
40
+
41
+export default defineNuxtConfig({
42
+ css: [
43
+ 'virtual:fonts.css',
44
+ ],
45
+ vite: {
46
+ plugins: [
47
+ Fonts({ /** vite-plugin-fonts config */}),
48
49
+ },
50
+})
51
+```
52
53
## Options
54
55
```ts
0 commit comments