rails / webpacker

Use Webpack to manage app-like JavaScript modules in Rails
MIT License
5.31k stars 1.47k forks source link

ssr vue.js #2074

Closed tihonko999 closed 4 years ago

tihonko999 commented 5 years ago

Hello! Did anybody try to make server side rendering with webpacker and vue? I want to achieve result similar to official ssr approach https://ssr.vuejs.org/ It would be nice to have vue-rendered markup in html at first page load

jpickwell commented 5 years ago

To use SSR in Rails, you'll need to use Vue.js components in your Rails views. Part of me thinks that SSR is out of scope for Webpacker, but I could be wrong.

I guess Webpacker would come into play for the hydration phase of SSR.

ytbryan commented 5 years ago

SSR is possible with hypernova See https://github.com/ytbryan/vue_on_rails_ssr

guillaumebriday commented 4 years ago

Can this issue be closed ?