fedi-feed-router/vite.config.ts

41 lines
891 B
TypeScript
Raw Normal View History

2025-06-29 08:50:03 +02:00
import { defineConfig } from 'vite';
2025-08-03 01:34:11 +02:00
import laravel from 'laravel-vite-plugin';
import react from '@vitejs/plugin-react';
2025-06-29 08:50:03 +02:00
export default defineConfig({
plugins: [
2025-08-03 01:34:11 +02:00
react(),
2025-06-29 08:50:03 +02:00
laravel({
2025-08-03 01:34:11 +02:00
input: [
'resources/css/app.css',
'resources/js/app.tsx',
],
2025-06-29 08:50:03 +02:00
refresh: true,
}),
],
2025-08-03 01:34:11 +02:00
server: {
host: '0.0.0.0',
port: 5173,
hmr: {
host: 'localhost',
},
watch: {
usePolling: true,
interval: 1000,
},
},
2025-06-29 08:50:03 +02:00
esbuild: {
2025-08-03 01:34:11 +02:00
target: 'es2020',
2025-06-29 08:50:03 +02:00
jsx: 'automatic',
},
resolve: {
2025-08-03 01:34:11 +02:00
extensions: ['.tsx', '.ts', '.jsx', '.js'],
},
optimizeDeps: {
include: ['react', 'react-dom'],
esbuildOptions: {
target: 'es2020',
jsx: 'automatic',
2025-06-29 08:50:03 +02:00
},
},
2025-08-03 01:34:11 +02:00
});