web/vite.config.js

48 lines
1.3 KiB
JavaScript
Raw Permalink Normal View History

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,
// 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/**',
],
},
},
});