import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ plugins: [ laravel({ input: ['resources/css/app.css', 'resources/js/app.js'], refresh: true, }), tailwindcss(), ], server: { host: '0.0.0.0', port: 5173, // HMR host for LAN dev; override with VITE_DEV_HOST when accessing via the VM's IP. hmr: { host: process.env.VITE_DEV_HOST || 'localhost' }, watch: { ignored: ['**/storage/framework/views/**'], }, }, });