-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite instead of Webpack #85
Comments
That's a good question! Internally we've definitely made the switch to Vite and are recommending it going further, but we actually weren't sure if the installers were getting good use and if something like a rails app template would make more sense for the future. Updating the installers is a little more difficult now in a webpacker-less world because there aren't as many standards to fall back on. Before, we'd generally know what a rails webpacker setup looked like so we could make good guesses about what code to add and change; now there's a lot more guesswork. I think we're deciding between:
Do any of those seem obviously better or worse to you? |
Does this post help (in the context of setup instructions) . |
Hello, if you don’t mind me reviving this issue a bit, from what I understand your issue is that with Vite there aren’t really any standard of where the entrypoints folder will be is that right ? Overall I think adding two options for webpacker (which is still widely used) and vite, in the same manner as what you did for js, would be great and I’d be happy to have a try at it if you want |
Hey @wJoenn, just to clarify: your idea is that we can have an installer command that could work for either webpack or vite? If that's correct and you want to take a shot at implementing it, I'd be happy to take a look! |
Yeah I had the idea that we could check whether Vite is installed the same way you do for webpacker then proceed with an installation for the appropriate bundler.
And the result of running this in the terminal :
I'm not available to start working on that today but I'll definitely try next week, thanks for the opportunity 🙂 |
I think it's a good idea to revisit this to make setting up inertia-rails easier with the new Rails 7.1. Personally, I always use a template, but it seems like the standard gem always has some good opinionated installer command.
I can help with that. |
I'm looking to test this approach but not sure where to start. |
@iamajvillalobos for now you can use this template to get some inspiration: https://github.com/BrandonShar/inertia-rails-template |
Looking at the generators I was checking that the vue installer only works for webpacker apps, which in Rails 7 is not gonna be the main way to go. Will this be updated anytime soon?
The text was updated successfully, but these errors were encountered: