feat: lazy load images (#1969)
This commit is contained in:
parent
1ceb3e2857
commit
23c1dfec10
5 changed files with 57 additions and 48 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue