- Updated composer.json to include inertiajs/inertia-laravel dependency. - Modified app.php to register HandleInertiaRequests middleware. - Updated package.json with new dependencies for React and Vite. - Enhanced vite.config.js to include React plugin. - Created HandleInertiaRequests middleware for Inertia.js integration.
21 lines
495 B
JavaScript
21 lines
495 B
JavaScript
import { defineConfig } from 'vite';
|
|
import laravel from 'laravel-vite-plugin';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: ['resources/css/app.css', 'resources/js/app.js'],
|
|
refresh: true,
|
|
}),
|
|
react(),
|
|
tailwindcss(),
|
|
],
|
|
server: {
|
|
watch: {
|
|
ignored: ['**/storage/framework/views/**'],
|
|
},
|
|
},
|
|
});
|