import { defineConfig } from 'vite'; import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ plugins: [ tailwindcss(), ], build: { outDir: 'dist', manifest: true, // This is crucial for PHP to find the generated files rollupOptions: { input: 'src/js/app.js' // We only need the JS entry point, it will bundle CSS too } }, server: { strictPort: true, port: 5173 } });