docs: fix font preload example

pull/2104/head
Evan You 2 years ago
parent 0dc98ef2fb
commit 736f6c643f

@ -72,6 +72,7 @@ export default {
const myFontFile = assets.find(file => /font-name\.\w+\.woff2/)
if (myFontFile) {
return [
[
'link',
{
rel: 'preload',
@ -81,6 +82,7 @@ export default {
crossorigin: ''
}
]
]
}
}
}

Loading…
Cancel
Save