How to co-locate Stimulus controllers and CSS modules? #371
RomanTurner
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi Roman! The following section of the guide discusses a few options: Which style to use depends mostly on the trade-offs of bundling all the globbed components together, or bundling each section as a separate chunk. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks for this wonderful project. It has been great working with vite_ruby.
I am using vite_ruby with roda, the web toolkit, to make a custom framework that aligns around the locality of behavior.
From the code to the way the code is organized, everything that goes together lives together.
example directory structure:
I would love to be able to add stimulus controllers and CSS modules inside of the allocated resource files. Would there be a way to glob search the app directory for the js/css files and build them from there?
Beta Was this translation helpful? Give feedback.
All reactions