erp-transportistas-frontend-v2/vite.config.ts
Adrian Flores Cortes efc8cef4cd feat: Initial frontend structure for ERP Transportistas
- React 18.x with Vite configuration
- TailwindCSS with transport-themed colors
- Leaflet for map integration
- TypeScript setup with path aliases

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 09:51:26 -06:00

33 lines
887 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
export default defineConfig({
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'),
'@services': path.resolve(__dirname, './src/services'),
'@features': path.resolve(__dirname, './src/features'),
'@pages': path.resolve(__dirname, './src/pages'),
},
},
server: {
port: 5174,
proxy: {
'/api': {
target: 'http://localhost:3014',
changeOrigin: true,
},
},
},
build: {
outDir: 'dist',
sourcemap: true,
},
});