Files
AndyTranscribe/vite.config.js
T
ben bfcfc12f58 Add Fortify auth, Flux dark mode, demo seed, and Docker hot reload.
Protect recordings per user, seed a demo login on container start, and bind-mount the app with Vite HMR for local Compose development.
2026-08-12 18:38:53 +02:00

32 lines
907 B
JavaScript

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: {
host: process.env.VITE_HOST || true,
port: Number(process.env.VITE_PORT || 5173),
strictPort: true,
hmr: {
host: process.env.VITE_HMR_HOST || 'localhost',
},
watch: {
ignored: ['**/storage/framework/views/**'],
usePolling: process.env.VITE_USE_POLLING === 'true',
},
},
});