0👍
I do think that it’s possible to have 2 frontend framework to work with inertia.js
I never tried this myself, but maybe you can change app.js to vue.js
and svelte.js
to run both createInertiaApp
for vue and svelte. You can do this by splitting both vue and svelte to 2 different files and call it from app.js
Now, your vite.config.js
file should accept both Vue and Inertia.js by importing both plugins to vite config.
Lastly, you can make 2 layout files, each to be the main layout file for each framework.
vue.blade.php
should have this in the head:
@vite('resources/js/vue.js')
and your vite.config.js
should accept it:
laravel({
input: ["resources/js/vue.js"],
refresh: true,
}),
That’s the gist of it, it may not run correctly, but i guess it’s the baseline of it
Source:stackexchange.com