updates
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user