fix(examples): Update config for better mobile handling

This commit is contained in:
Sébastien Chopin 2019-01-07 17:34:18 +01:00
parent af76e07b56
commit 3b7ac3c5c5

View File

@ -1,12 +1,22 @@
export default {
head: {
titleTemplate: '%s - NuxtJS Prefetching'
titleTemplate: '%s - NuxtJS Prefetching',
htmlAttrs: { lang: 'en' },
meta: [
{ 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'
}
}