Nuxt/examples/nuxt-prefetch/nuxt.config.js

23 lines
697 B
JavaScript
Raw Normal View History

export default {
head: {
titleTemplate: '%s - NuxtJS Prefetching',
htmlAttrs: { lang: 'en' },
meta: [
2019-01-07 16:44:14 +00:00
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
],
// Support polyfill for browsers that don't support it (Safari Mobile for example)
script: [
{ src: 'https://polyfill.io/v2/polyfill.min.js?features=IntersectionObserver', body: true }
]
},
router: {
// To disable prefetching, uncomment the line
// prefetchLinks: false
// Activate prefetched class (default: false)
// Used to display the check mark next to the prefetched link
linkPrefetchedClass: 'nuxt-link-prefetched'
}
}