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

Loading…
Cancel
Save