Open yotamberk opened 7 years ago
@yotamberk did you close this because you figured it out? I'd be more than happy to do my best to explain otherwise!
Hey, i figured it out. It used htmlWebpackPlugin to inject it to the index.html. but there is a problem still, because when i used inert/views with hapi to serve the file (index.html), it is served without the injected bundle... This is really problematic and i'm not dude how i can solve this. It seems that there might be a way to serve not files but react element directly using hapi-react-somethingrather (i cant remembered the name...) But that me and not using htmlWebpackPlugin and not dude of the got reload will work (which is my main goal...). Any suggestions?
Hey, i figured it out. It used htmlWebpackPlugin to inject it to the index.html. but there is a problem still, because when i used inert/views with hapi to serve the file (index.html), it is served without the injected bundle... This is really problematic and i'm not dude how i can solve this. It seems that there might be a way to serve not files but react element directly using hapi-react-somethingrather (i cant remembered the name...) But that me and not using htmlWebpackPlugin and not dude of the got reload will work (which is my main goal...). Any suggestions?
So, it sounds to me like you are venturing into Universal (Isomorphic) applications. The way these work is the initial page load is rendered server-side and then subsequent calls are done with the front-end router. Unfortunately, I don't understand that architecture very well myself. So, I don't think I can be of assistance at the moment.
I would like, in the future, to implement a fully Universal boilerplate.
Ugh... Since when did web development be come so damn complex...? Ok, seems like Isomorphic is the way to go for my case... Thanks for the quick answers :)
Hi @adam-beck , I'm trying to understand the example and I don't understand why the bundle.js is not being created and how does the app know to use this bundle.
How does index.html not include your bundled app and still load it properly? (It's not working for my app... :cry: )