@@ -18,9 +18,9 @@ export default {
18
18
plugins: [
19
19
ViteFonts ({
20
20
google: {
21
- families: [' Source Sans Pro' ]
21
+ families: [' Source Sans Pro' ],
22
22
},
23
- })
23
+ }),
24
24
],
25
25
}
26
26
```
@@ -47,37 +47,36 @@ export default {
47
47
* Typekit project id
48
48
*/
49
49
id: ' <projectId>' ,
50
-
50
+
51
51
/**
52
52
* enable non-blocking renderer
53
53
* <link rel="preload" href="xxx" as="style" onload="this.rel='stylesheet'">
54
54
* default: true
55
55
*/
56
- defer: true
56
+ defer: true ,
57
57
},
58
58
59
59
// Google Fonts API V2
60
60
google: {
61
61
/**
62
- * enable preconnect link injection
62
+ * enable preconnect link injection
63
63
* <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
64
64
* default: true
65
65
*/
66
66
preconnect: false ,
67
-
67
+
68
68
/**
69
69
* values: auto, block, swap(default), fallback, optional
70
70
* default: 'swap'
71
71
*/
72
72
display: ' block' ,
73
-
73
+
74
74
/**
75
75
* values: auto, block, swap(default), fallback, optional
76
76
* default: undefined
77
77
*/
78
78
text: ' ViteAwsom' ,
79
79
80
-
81
80
/**
82
81
* Fonts families lists
83
82
*/
@@ -102,9 +101,9 @@ export default {
102
101
* <link rel="preload" href="xxx" as="style" onload="this.rel='stylesheet'">
103
102
* default: true
104
103
*/
105
- defer: true
106
- }
107
- ]
104
+ defer: true ,
105
+ },
106
+ ],
108
107
},
109
108
110
109
// Custom fonts.
@@ -139,18 +138,18 @@ export default {
139
138
* early in the critical rendering path, without having to wait for the
140
139
* CSSOM to be created.
141
140
*/
142
- preload: true
141
+ preload: true ,
143
142
144
143
/**
145
- * Using `<link rel="prefetch">` is intended for prefetching resources
146
- * that will be used in the next navigation/page load
144
+ * Using `<link rel="prefetch">` is intended for prefetching resources
145
+ * that will be used in the next navigation/page load
147
146
* (e.g. when you go to the next page)
148
- *
147
+ *
149
148
* Note: this can not be used with `preload`
150
149
*/
151
- prefetch : false
152
- }
153
- })
150
+ prefetch: false ,
151
+ },
152
+ }),
154
153
],
155
154
}
156
155
```
0 commit comments