erikras / react-redux-universal-hot-example

A starter boilerplate for a universal webapp using express, react, redux, webpack, and react-transform
MIT License
12.01k stars 2.5k forks source link

Why does the js bundle in production is so small? #1249

Closed vasco3 closed 7 years ago

vasco3 commented 7 years ago

My app ships a js bundle of only 345KB. I'm impressed since minified React takes more than that. I wonder how was this achieved

gabriel-miranda commented 7 years ago

This app use compression to gzip the data to the client (if I got that right, I'm not sure). The minified version of react weighs about ~160kb I think. Try to download to your pc the file and check the size.

vasco3 commented 7 years ago

@gabriel-miranda thanks for the answer. I'll try with compression. And true, React is not that big, I misread the units.