Skip to content

Update to latest version of Vite? #113

Answered by ElMassimo
nickcotton asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Nick!

bundle exec vite install should only be run once when first setting up the gem, and it should not be run when upgrading.

Added a bin/vite upgrade command to 3.0.0, which can be run to perform the following process automatically.

Upgrading npm packages

You can update the vite package independently, but it's always convenient to update vite-plugin-ruby, in case there are any breaking changes that require the plugin to be updated as well.

yarn upgrade vite vite-plugin-ruby # or npm upgrade

You can also specify a version manually in package.json, for example: "vite": "^2.5.0-beta.2",

It's always convenient to check the changelog when upgrading, specially if upgrading to a major or m…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nickcotton
Comment options

Answer selected by ElMassimo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants