Files
imgPub/vite.config.js
2025-11-10 23:35:59 +03:00

25 lines
479 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
publicDir: 'public',
base: './', // Relatif path için
server: {
fs: {
allow: ['..'] // Dışarıdaki dosyalara erişim
}
},
build: {
assetsDir: 'assets',
chunkSizeWarningLimit: 2000,
rollupOptions: {
output: {
manualChunks: {
tesseract: ['tesseract.js']
}
}
}
}
});