HenrikJoreteg / hjs-webpack

Helpers/presets for setting up webpack with hotloading react and ES6(2015) using Babel.
1.79k stars 129 forks source link

Create walk-through guide for Static Site Rendering #249

Open ninjasort opened 8 years ago

ninjasort commented 8 years ago

I think it would be beneficial to explain in more detail how to effectively set up static site rendering for developers using hjs-webpack with React, React Router, Redux, and hjs-webpack.

I've created an initial Wiki Page and would love to help outline a guide for how to build a static site with this toolchain. Thoughts?

HenrikJoreteg commented 8 years ago

Hi @cameronroe, thanks for the suggestion.

I think you're right that it'd be useful, tricky thing for me personally is finding time to do it and keep it up to date. Also, since these types of things have a tendency to get stale, it may possibly be better done as a blogpost with a publishing date on it?

I'm certainly not opposed to it, I just know that I personally don't have the time right now. What do you think?

ninjasort commented 8 years ago

Thanks for the response @HenrikJoreteg. To be honest, I have to agree with you here. I don't have that much time either, and although I think this would be extremely useful. I'll need to revisit it in the future. Would you mind keeping the issue open and I'll see if I can get to it over the next few quarters?

ninjasort commented 7 years ago

Revisiting this issue. I think this would be great to try to figure out. The main question I have, is how html files get created with webpack? The tricky part will be pre-rendering routes from react-router. If the routes are configured through a routes.js file, it might be possible to use hjs-webpack to load in those routes through an option and pre-render the html files that way.

Thoughts?