feat: lazy load images (#1969)

This commit is contained in:
Shinigami 2023-04-26 22:46:00 +02:00 committed by GitHub
parent 1ceb3e2857
commit 23c1dfec10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 57 additions and 48 deletions

View file

@ -24,6 +24,7 @@ export default defineNuxtConfig({
'@vue-macros/nuxt',
'@nuxtjs/i18n',
'@nuxtjs/color-mode',
'@unlazy/nuxt',
'nuxt-vitest',
...(isDevelopment || isWindows) ? [] : ['nuxt-security'],
'~/modules/emoji-mart-translation',
@ -248,6 +249,9 @@ export default defineNuxtConfig({
staleDep: {
packageManager: 'pnpm',
},
unlazy: {
ssr: false,
},
})
declare global {