import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; import { bunny } from 'laravel-vite-plugin/fonts'; import tailwindcss from "@tailwindcss/vite"; export default defineConfig({ plugins: [ laravel({ input: [ 'resources/css/app.css', 'resources/js/app.js', ], refresh: true, fonts: [ bunny('Instrument Sans', { weights: [400, 500, 600], }), ], }), tailwindcss(), ], server: { cors: true, // Bind all interfaces so the port mapping reaches it; the container's // own loopback is not addressable from the host browser. Port matches // the compose mapping so the URL written to public/hot is reachable. host: '0.0.0.0', port: 5174, strictPort: true, hmr: { host: 'localhost', clientPort: 5174, }, watch: { ignored: [ '**/.agents/**', '**/.claude/**', '**/.cursor/**', '**/.junie/**', '**/storage/framework/views/**', '**/vendor/**', ], }, }, });