2025-11-10 17:00:40 +03:00
|
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
|
|
|
|
|
|
|
|
// https://vite.dev/config/
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
|
plugins: [react()],
|
2025-11-11 07:46:58 +03:00
|
|
|
|
base: '/', // Base path - root'tan servis edilecek
|
|
|
|
|
|
build: {
|
|
|
|
|
|
assetsDir: 'assets',
|
|
|
|
|
|
// Relative path'ler kullan (absolute değil)
|
|
|
|
|
|
rollupOptions: {
|
|
|
|
|
|
output: {
|
|
|
|
|
|
// Asset dosyaları için relative path
|
|
|
|
|
|
assetFileNames: 'assets/[name]-[hash][extname]',
|
|
|
|
|
|
chunkFileNames: 'assets/[name]-[hash].js',
|
|
|
|
|
|
entryFileNames: 'assets/[name]-[hash].js',
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
2025-11-10 17:00:40 +03:00
|
|
|
|
})
|