This commit is contained in:
2026-01-24 15:59:05 +02:00
parent cbb3fb3421
commit b59d27d13d
12 changed files with 165 additions and 4 deletions

View File

@@ -2,4 +2,10 @@
root * /usr/share/caddy/dist
file_server
try_files {path} /index.html
# Enable gzip compression
encode gzip
# Enable brotli compression
encode zstd
}

View File

@@ -30,7 +30,7 @@ export default defineConfig(({ command }) => {
},
build: {
outDir: 'dist',
sourcemap: command === 'serve',
sourcemap: false,
commonjsOptions: {
include: [/node_modules/]
},
@@ -40,6 +40,18 @@ export default defineConfig(({ command }) => {
'vendor': [
'react',
'react-dom',
'react-router-dom',
'@tanstack/react-query',
],
'ui': [
'@carbon/icons-react',
'lucide-react',
'react-select',
],
'utils': [
'clsx',
'tailwind-merge',
'class-variance-authority',
],
},
},