Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

chore: include auto-imported dependencies to vite optimizing for better developing experience

HoshinoSuzumi7325d6b9eeba
diff --git a/nuxt.config.ts b/nuxt.config.ts
index adcdc830..9364e3fd 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -61,6 +61,33 @@ export default defineNuxtConfig({
vite: {
plugins: [tailwindcss() as any],
+ optimizeDeps: {
+ include: [
+ 'dayjs',
+ 'dayjs/plugin/updateLocale',
+ 'dayjs/locale/zh-cn',
+ 'dayjs/locale/zh-hk',
+ 'dayjs/locale/zh-tw',
+ 'dayjs/locale/en',
+ 'dayjs/plugin/relativeTime',
+ 'dayjs/plugin/utc',
+ 'dayjs/plugin/timezone',
+ 'dayjs/plugin/duration',
+ 'dayjs/plugin/localizedFormat',
+ 'dayjs/plugin/isBetween',
+ '@yeger/vue-masonry-wall',
+ 'motion-v',
+ 'swiper/vue',
+ 'swiper/modules',
+ 'tailwind-merge',
+ 'thumbhash',
+ 'mapbox-gl',
+ 'file-type',
+ 'reka-ui',
+ 'es-toolkit',
+ 'tippy.js',
+ ],
+ },
css: {
devSourcemap: true,
},