Files
flights_web_raw/apps/react/vite.config.ts
T
gnezim 7de28854cf fix: move index.html to src/ subdirectory per specification
- Moved index.html from apps/react/ to apps/react/src/
- Updated vite.config.ts to set src as root directory
- Adjusted build output path from 'dist' to '../dist'
- Updated script reference in index.html from absolute to relative path
2026-04-05 19:02:26 +03:00

24 lines
489 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
plugins: [react()],
root: 'src',
server: {
port: 3001,
open: false,
},
resolve: {
alias: {
'@app': path.resolve(__dirname, './src/app'),
'@styles': path.resolve(__dirname, './src/styles'),
'@assets': path.resolve(__dirname, './src/assets'),
},
},
build: {
outDir: '../dist',
sourcemap: false,
},
})