Files
router-lists-ui/frontend/vite.config.js
T
denozord b0c8a0a4bb
Publish Docker image / build-and-push (push) Successful in 2m6s
Refactor frontend structure and update dependencies
- Changed the main entry point from main.jsx to main.tsx for TypeScript support.
- Removed Tabler JS import and integrated Tailwind CSS for styling.
- Updated package.json and package-lock.json to include new dependencies such as @fontsource-variable/geist and tailwindcss, while removing unused ones.
- Enhanced Vite configuration with path aliasing for improved import management.
- Deleted unused App.css and App.jsx files to streamline the project structure.

Made-with: Cursor
2026-04-26 14:56:48 +07:00

37 lines
849 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import path from 'path'
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@tabler/icons-react': path.resolve(__dirname, './src/lib/icons.tsx'),
},
},
build: {
chunkSizeWarningLimit: 2000,
},
server: {
proxy: {
'/v1': {
target: 'http://localhost:8080',
changeOrigin: true,
secure: false,
},
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
secure: false,
},
},
// Отключаем кеширование в dev режиме
headers: {
'Cache-Control': 'no-store',
},
},
})