25 lines
479 B
JavaScript
25 lines
479 B
JavaScript
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']
|
||
}
|
||
}
|
||
}
|
||
}
|
||
});
|