import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
refresh: true,
}),
],
});
This configuration tells Vite to process the app.css
and app.js
files in the resources
directory and enables automatic page refresh when these files are updated.