Separate JavaScript Importmaps For Rails Engines Discussion
Discussion for
Separate JavaScript Importmaps For Rails Engines
Good stuff! I have an idea for another episode/lesson:
When using TailwindCSS (which is pretty much the standard nowadays) in an Rails app, I found myself wanting to build "plugins" or extended functionality nby using engines. I would be very cool to have a way to automatically scan the views in the engine when creating the TailwindCSS output (using the TailwindConfig from the main app). I've seen some examples that precompiles a css-bundle in the engine and then include it in the main app.
Maybe this is a solved problem? :)