Component Preview from Mountable Engine? #652
Unanswered
DiegoOrejuela
asked this question in
Q&A
Replies: 1 comment
-
@DiegoOrejuela thanks for starting this discussion! We've really avoided stepping into the area of asset management with ViewComponent, as there is less convention in this area than in most of the Rails ecosystem. That being said, I think it's almost unavoidable that we improve our approach here. We're starting to experiment with JS and CSS bundling in Primer ViewComponents, but I'm not sure what / when we'll have something worth extracting from there into ViewComponent. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to serve component previews from an engine with compiled webpacker assets? is that it seems important to me because they have javascript and css dependencies for their operation in the views, but I have not been able to, for example, using webpacker inside the engine, load the compiled assets of the engine; always look for the dummy app packs.
So now I have had to replicate the engine's js and css dependencies in the dummy application and this has long been very tedious to maintain.
I saw the gem primer_view_components hoping to see how they did it, but I see that they do it from the app within demo (like a dummy app)
Beta Was this translation helpful? Give feedback.
All reactions