Replies: 1 comment 5 replies
-
Hi Maciek! @uhoh-itsmaciek I originally wrote the Migration section as an addition to the Installation section. It's understandable that the first paragraph will be vague and confusing if read as a starting point. Especially the comment about copying entrypoints—it needed rephrasing. I've updated the Migrate from Webpacker section to be more explicit about following the first steps of the guide before proceeding, and added more information about moving entrypoints. Thanks for your feedback 😃 The "dark theme" I added recently had an unintended effect of unstyling links, which made the section seem even more vague—all of the reference links were hidden in plain sight 😅 I've updated the styles to use the standard underline decoration so they are as easy to spot as in the light theme. |
Beta Was this translation helpful? Give feedback.
-
Hello. First of all, thanks for the gem! Vite looks promising and I'm eager to try it out.
For context: we have a Rails (6.0.4) / webpacker (4.2.2) with React, TypeScript and PostCSS on the front-end. I'm trying to follow https://vite-ruby.netlify.app/guide/migration.html and suggestions from https://vite-ruby.netlify.app/guide/troubleshooting.html but I think the instructions could be clearer: the guide says "...the installation script will detect..." without actually telling you to run the installation script (fairly obvious, I admit). The next sentence is
which is pretty vague and conceptually confusing: I don't have to move code around but I do have to copy it? Just copy it to the new directory without changes? Why is that required then?
I figured out (some of) these issues myself in trying to post a better "help it's not working" question (it's still not working, but now I think I know what I need to do), but I think some changes here could improve the migration experience.
I understand that there's a million different ways to set up Rails applications with respect to Webpacker, so no instructions will be perfect, but I think very explicit instructions for a very basic case (or ideally a slightly more complicated case), clearly referencing vite/vite_ruby and webpack/webpacker concepts, would make it a lot easier to migrate. I'm happy to suggest more concrete improvements once I complete our migration and understand vite/vite_ruby better if there's interest. As a start, just adding "bundle exec vite install" an explicit step, as well as a sentence or two about the packs/entrypoints migration, would help a lot.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions