Skip to content

Why stimulus-vite-helpers? #7

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

You must be logged in to vote

Hi Mohamad!

There's no difference, they are both equivalent at build time.

This package is intended to make it easier to migrate applications that have a large amount of controllers, and to allow skipping the boilerplate of manually registering controllers, using the filenames as the naming convention as is typical of Rails.

If you are using Vite, another advantage is that it ensures your controllers work out of the box with vite-plugin-stimulus-hmr.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ElMassimo
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
Converted from issue

This discussion was converted from issue #5 on December 19, 2022 12:59.