4 ms·
Yes. No issues with Webpacker as Vue is officially supported. In fact my quite old project is now augmented with Vue to make several micro-SPAs in interactive p
by imhoguy 6y ago
Yes. No issues with Webpacker as Vue is officially supported. In fact my quite old project is now augmented with Vue to make several micro-SPAs in interactive parts. Layout HTMLs are served the standard way with Haml. To get things faster I sometimes render data JSON objects in HTML page script tags to get rid of initial fetch - works nicely.
- pqdbr 6y agoWe do the same. The page loads with a div containing something like: `<%= content_tag :div, data: { behavior: 'vue_app', 'initial-data': { some: 'json' } %> <html spinner> <% end %>`