docs: preload home page images

pull/2104/head
Evan You 2 years ago
parent 32dfaf5adc
commit 5dd2a233b1

@ -25,8 +25,13 @@ export default defineConfig({
] ]
], ],
markdown: { transformHead({ page }) {
headers: false if (page === 'index.md') {
return [
['link', { rel: 'preload', as: 'image', href: '/vue.svg' }],
['link', { rel: 'preload', as: 'image', href: '/vite.svg' }]
]
}
}, },
themeConfig: { themeConfig: {

Loading…
Cancel
Save