buckets/vite.config.ts

36 lines
857 B
TypeScript
Raw Normal View History

2025-12-29 17:17:35 +01:00
import { wayfinder } from '@laravel/vite-plugin-wayfinder';
import tailwindcss from '@tailwindcss/vite';
import react from '@vitejs/plugin-react';
import laravel from 'laravel-vite-plugin';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.tsx'],
ssr: 'resources/js/ssr.tsx',
refresh: true,
}),
react({
babel: {
plugins: ['babel-plugin-react-compiler'],
},
}),
tailwindcss(),
wayfinder({
formVariants: true,
}),
],
esbuild: {
jsx: 'automatic',
},
2025-12-29 19:47:58 +01:00
server: {
host: '0.0.0.0',
port: 5173,
strictPort: true,
hmr: {
clientPort: 5174,
},
},
2025-12-29 17:17:35 +01:00
});