File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ npm i --save-dev vite-plugin-fonts # yarn add -D vite-plugin-fonts
12
12
13
13
``` ts
14
14
// vite.config.js
15
- import ViteFonts from ' vite-plugin-fonts'
15
+ import { VitePluginFonts } from ' vite-plugin-fonts'
16
16
17
17
export default {
18
18
plugins: [
19
- ViteFonts ({
19
+ VitePluginFonts ({
20
20
google: {
21
21
families: [' Source Sans Pro' ],
22
22
},
@@ -36,11 +36,11 @@ import 'virtual:fonts.css'
36
36
37
37
``` ts
38
38
// vite.config.js
39
- import ViteFonts from ' vite-plugin-fonts'
39
+ import { VitePluginFonts } from ' vite-plugin-fonts'
40
40
41
41
export default {
42
42
plugins: [
43
- ViteFonts ({
43
+ VitePluginFonts ({
44
44
// Typekit API
45
45
typekit: {
46
46
/**
@@ -159,4 +159,4 @@ export default {
159
159
160
160
- https://web.dev/optimize-webfont-loading/
161
161
- https://csswizardry.com/2020/05/the-fastest-google-fonts/
162
- - _ (unmaintained)_ https://www.npmjs.com/package/webfontloader
162
+ - _ (unmaintained)_ https://www.npmjs.com/package/webfontloader
You can’t perform that action at this time.
0 commit comments