react-redux-universal-hot-example icon indicating copy to clipboard operation
react-redux-universal-hot-example copied to clipboard

Split the app into multiple small app

Open lihan opened this issue 9 years ago • 9 comments

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.

lihan avatar Oct 21 '15 11:10 lihan

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 avatar Oct 21 '15 23:10 trueter

@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.

lihan avatar Oct 22 '15 01:10 lihan

see this: http://webpack.github.io/docs/code-splitting.html

arkist avatar Oct 24 '15 07:10 arkist

Is it a good idea to use webpack code splitting for admin area, or separate app is prefered?

YellowOrWhite avatar Oct 29 '15 20:10 YellowOrWhite

@YellowOrWhite All sub apps should be lazily loaded. This would be useful to demonstrate in this template.

lihan avatar Oct 30 '15 05:10 lihan

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?

trueter avatar Nov 12 '15 23:11 trueter

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 avatar Aug 11 '17 10:08 ananddodia

@ananddodia You can look here: https://github.com/bertho-zero/react-redux-universal-hot-example

bertho-zero avatar Aug 11 '17 13:08 bertho-zero

@bertho-zero Thank you. I will have look into that link and get back if any doubt.

ananddodia avatar Aug 22 '17 05:08 ananddodia