Some checks failed
ERP Core CI / Backend Lint (push) Has been cancelled
ERP Core CI / Backend Unit Tests (push) Has been cancelled
ERP Core CI / Backend Integration Tests (push) Has been cancelled
ERP Core CI / Frontend Lint (push) Has been cancelled
ERP Core CI / Frontend Unit Tests (push) Has been cancelled
ERP Core CI / Frontend E2E Tests (push) Has been cancelled
ERP Core CI / Database DDL Validation (push) Has been cancelled
ERP Core CI / Backend Build (push) Has been cancelled
ERP Core CI / Frontend Build (push) Has been cancelled
ERP Core CI / CI Success (push) Has been cancelled
Performance Tests / Lighthouse CI (push) Has been cancelled
Performance Tests / Bundle Size Analysis (push) Has been cancelled
Performance Tests / k6 Load Tests (push) Has been cancelled
Performance Tests / Performance Summary (push) Has been cancelled
- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8 - Actualizaciones en modulos CRM y OpenAPI Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
51 lines
1.7 KiB
TypeScript
51 lines
1.7 KiB
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import path from 'path';
|
|
|
|
export default defineConfig(({ mode }) => ({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'@shared': path.resolve(__dirname, './src/shared'),
|
|
'@components': path.resolve(__dirname, './src/shared/components'),
|
|
'@hooks': path.resolve(__dirname, './src/shared/hooks'),
|
|
'@stores': path.resolve(__dirname, './src/shared/stores'),
|
|
'@utils': path.resolve(__dirname, './src/shared/utils'),
|
|
'@constants': path.resolve(__dirname, './src/shared/constants'),
|
|
'@services': path.resolve(__dirname, './src/services'),
|
|
'@app': path.resolve(__dirname, './src/app'),
|
|
'@features': path.resolve(__dirname, './src/features'),
|
|
'@pages': path.resolve(__dirname, './src/pages'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:4000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
// Generate source maps for production debugging
|
|
sourcemap: mode === 'development',
|
|
// Chunk splitting for better caching
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
// Vendor chunks
|
|
'vendor-react': ['react', 'react-dom', 'react-router-dom'],
|
|
'vendor-ui': ['framer-motion', 'lucide-react', 'recharts'],
|
|
'vendor-forms': ['react-hook-form', '@hookform/resolvers', 'zod'],
|
|
'vendor-state': ['zustand', 'axios'],
|
|
'vendor-utils': ['date-fns', 'clsx', 'tailwind-merge'],
|
|
},
|
|
},
|
|
},
|
|
// Increase chunk size warning limit
|
|
chunkSizeWarningLimit: 500,
|
|
},
|
|
}));
|