You've already forked Atomcms-edit
feat: install and configure Inertia.js with React
- Install inertia-laravel, @inertiajs/react, react, @vitejs/plugin-react - Add HandleInertiaRequests middleware registered in web group - Create Inertia root template (resources/views/app.blade.php) - Add React entry point and page components (resources/js/) - Add Inertia demo route (/inertia-test) - HomeController reverted to Blade (index page stays original) - Remove inertia-test2 test route
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 path from "path";
|
||||
import tailwindcss from "@tailwindcss/postcss";
|
||||
import autoprefixer from "autoprefixer";
|
||||
@@ -10,6 +11,7 @@ export default defineConfig({
|
||||
input: [
|
||||
"resources/css/global.css",
|
||||
"resources/js/global.js",
|
||||
"resources/js/ssr.jsx",
|
||||
"resources/themes/atom/css/app.css",
|
||||
"resources/themes/atom/js/app.js",
|
||||
"resources/themes/dusk/css/app.css",
|
||||
@@ -17,6 +19,8 @@ export default defineConfig({
|
||||
],
|
||||
}),
|
||||
|
||||
react(),
|
||||
|
||||
{
|
||||
name: "blade",
|
||||
handleHotUpdate({ file, server }) {
|
||||
|
||||
Reference in New Issue
Block a user