Skip to content

Rails engines integration #95

Answered by ElMassimo
denjamio asked this question in Q&A
Jul 3, 2021 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

@denjamio Check out this example Rails engine which is used in the example Rails app.
See a live example.

That's the minimal setup required to get HMR when a dev server is running, and ensure it doesn't delete assets from the parent app.

There's definitely room for improvement, specially when it comes to deployment.

Make sure to use vite_ruby@1.2.16, as it contains a few improvements for the engine use case.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
5 replies
@BilalBudhani
Comment options

@ElMassimo
Comment options

@BilalBudhani
Comment options

@ElMassimo
Comment options

@BilalBudhani
Comment options

Answer selected by ElMassimo
Comment options

You must be logged in to vote
5 replies
@ElMassimo
Comment options

@did
Comment options

@jrochkind
Comment options

@mattalat
Comment options

@did
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants