2026-08-22 23:42:57 +02:00
|
|
|
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,
|
2026-08-23 16:09:10 +02:00
|
|
|
// 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,
|
|
|
|
|
},
|
2026-08-22 23:42:57 +02:00
|
|
|
watch: {
|
|
|
|
|
ignored: [
|
|
|
|
|
'**/.agents/**',
|
|
|
|
|
'**/.claude/**',
|
|
|
|
|
'**/.cursor/**',
|
|
|
|
|
'**/.junie/**',
|
|
|
|
|
'**/storage/framework/views/**',
|
|
|
|
|
'**/vendor/**',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|