41 lines
No EOL
891 B
TypeScript
41 lines
No EOL
891 B
TypeScript
import { defineConfig } from 'vite';
|
|
import laravel from 'laravel-vite-plugin';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
laravel({
|
|
input: [
|
|
'resources/css/app.css',
|
|
'resources/js/app.tsx',
|
|
],
|
|
refresh: true,
|
|
}),
|
|
],
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 5173,
|
|
hmr: {
|
|
host: 'localhost',
|
|
},
|
|
watch: {
|
|
usePolling: true,
|
|
interval: 1000,
|
|
},
|
|
},
|
|
esbuild: {
|
|
target: 'es2020',
|
|
jsx: 'automatic',
|
|
},
|
|
resolve: {
|
|
extensions: ['.tsx', '.ts', '.jsx', '.js'],
|
|
},
|
|
optimizeDeps: {
|
|
include: ['react', 'react-dom'],
|
|
esbuildOptions: {
|
|
target: 'es2020',
|
|
jsx: 'automatic',
|
|
},
|
|
},
|
|
}); |