mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(examples): Update config for better mobile handling
This commit is contained in:
parent
af76e07b56
commit
3b7ac3c5c5
@ -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'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user