vueport
vueport copied to clipboard
Any plans to migrate this over to the Webpacker gem?
Just curious, but I think it would be nice to have this provider the SSR functionality alongside the new webpacker gem for Rails 5.1+.
@excid3 Looks like it would be a good idea, but it also looks like it has it's own Vue integration. Maybe this gem should just be the bit that takes the template and sends it to the renderer. I've been using https://github.com/samtgarson/vue-renderer to do that part of it...
Perhaps then the work that needs to be done here is just make WebpackRails gem optional so you can use whichever webpack integration you'd like?
Oh cool, I didn't realize that was a separate gem. That would probably make sense, or would it be easier to just add vue-renderer with webpacker directly?
You are welcome to do that, the bit that this gem gives you that would still be useful is the capturing of your view and sending it to the vue_renderer, receiving the response and rendering it.
This gem doesn't actually have a technical dependency on webpack_rails, it just installs it for you, so you should be able to use this with webpacker already, but when I get some time I'll do the work to make that clear and make it a 'bring your own webpack integration' type of deal.
@excid3 FYI I finally got round to at least looking at this, first commit is here—https://github.com/samtgarson/vueport/pull/12.
I plan to finish this off in the coming couple of weeks.
👍 I'll try to check this out soon. From looking at the diff, it's a nice simplification which is fantastic!
Haha thanks, but it's not done yet... this was more of a notification that I'm not ignoring your issue 😂 Good to see you're still vaguely interested in the gem though!
Heh, no worries man. I definitely still think it will be a useful gem for the SSR support.
Hey, curious to know if either of you are planning to return to working on this gem. Thanks.