Laravel Jetstream Inertia with vue-cli #566
-
Hey guys, I was wondering if that stack could make sense and how to set it up. I just played around with these things and was wondering if its worth it, to get deeper, to have the confort of the vue-cli, or if inertia is not really intend to work like this... Any ideas, tipps and thoughts would be great! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Any ideas here? :D |
Beta Was this translation helpful? Give feedback.
-
So, from what I understand, vue-cli is a tool for scaffolding a client-side only Vue application. It has no server-side component. Meaning if you need data, you'll need to connect an API...which is why this setup doesn't make sense with Inertia.js. Inertia is meant to be used within a server-side monolith application, such as Laravel or Rails, or even a Node based framework. I think a better way of getting some of the functionality of vue-cli with Inertia is by using Vite. People are already using Vite with Inertia. Hope that helps! |
Beta Was this translation helpful? Give feedback.
So, from what I understand, vue-cli is a tool for scaffolding a client-side only Vue application. It has no server-side component. Meaning if you need data, you'll need to connect an API...which is why this setup doesn't make sense with Inertia.js.
Inertia is meant to be used within a server-side monolith application, such as Laravel or Rails, or even a Node based framework.
I think a better way of getting some of the functionality of vue-cli with Inertia is by using Vite. People are already using Vite with Inertia.
Hope that helps!