Add Inertia.js support and middleware configuration
- 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.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import laravel from 'laravel-vite-plugin';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
|
||||
export default defineConfig({
|
||||
@@ -8,6 +9,7 @@ export default defineConfig({
|
||||
input: ['resources/css/app.css', 'resources/js/app.js'],
|
||||
refresh: true,
|
||||
}),
|
||||
react(),
|
||||
tailwindcss(),
|
||||
],
|
||||
server: {
|
||||
|
||||
Reference in New Issue
Block a user