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(vite): 将图标打包进 client bundle

Timothy Yin4364f1c3997c
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 6126c854..b01d620a 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -49,13 +49,25 @@ export default defineNuxtConfig({
},
vite: {
- plugins: [tailwindcss() as any],
+ plugins: [tailwindcss()],
+ css: {
+ devSourcemap: true,
+ },
+ build: {
+ sourcemap: false,
+ },
},
colorMode: {
preference: 'dark',
},
+ icon: {
+ clientBundle: {
+ scan: true,
+ },
+ },
+
dayjs: {
locales: ['zh-cn', 'zh-hk', 'en'],
plugins: ['relativeTime', 'utc', 'timezone', 'duration', 'localizedFormat'],