Files
balikci/frontend/vite.config.js

21 lines
565 B
JavaScript
Raw Normal View History

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',
},
},
},
})