- streamline the page header and status toolbar - move the horizontal scrollbar above the table - add page size selection and record range details - improve column visibility controls and responsive styles - adjust the Vite chunk size warning limit
34 lines
1.0 KiB
JavaScript
34 lines
1.0 KiB
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
clearScreen: false,
|
|
server: {
|
|
port: 1420,
|
|
strictPort: true,
|
|
},
|
|
build: {
|
|
target: 'es2020',
|
|
outDir: 'dist',
|
|
chunkSizeWarningLimit: 600,
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks(id) {
|
|
const normalizedId = id.replaceAll('\\', '/');
|
|
if (!normalizedId.includes('/node_modules/')) return undefined;
|
|
if (normalizedId.includes('/node_modules/@tauri-apps/')) return 'tauri-vendor';
|
|
if (normalizedId.includes('/node_modules/@dnd-kit/')) return 'dnd-vendor';
|
|
if (normalizedId.includes('/node_modules/lucide-react/')) return 'icons-vendor';
|
|
if (
|
|
normalizedId.includes('/node_modules/react/')
|
|
|| normalizedId.includes('/node_modules/react-dom/')
|
|
|| normalizedId.includes('/node_modules/scheduler/')
|
|
) return 'react-vendor';
|
|
return 'vendor';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|