react-redux-universal-hot-example
react-redux-universal-hot-example copied to clipboard
Split the app into multiple small app
Is there a way to split the app into multiple small apps easily? Otherwise people who is on homepage has to load all other pages, this makes loading slower.
The bundle on the heroku app is just 131kb gzipped, including all vendor code - I consider that small enough. If you still want to split the app take a look at Webpack code splitting.
@trueter The bundle size with this example isn't a problem. It will be a problem as you start developing on the top of this. Since this is a boilerplate, it worthy considering to have this feature.
see this: http://webpack.github.io/docs/code-splitting.html
Is it a good idea to use webpack code splitting for admin area, or separate app is prefered?
@YellowOrWhite All sub apps should be lazily loaded. This would be useful to demonstrate in this template.
Just found this A router is the perfect place to handle code splitting: react-router/DynamicRouting.md
Does anyone know whether it makes sense to split vendor css like bootstrap and font-awesome into a separate bundle? Could this improve rebuild speed?
I saw code splitting with webpack. But need some help with this boilerplate as example for code splitting. How can i implement with ES6 syntax? that is my problem
@ananddodia You can look here: https://github.com/bertho-zero/react-redux-universal-hot-example
@bertho-zero Thank you. I will have look into that link and get back if any doubt.