question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An explanation of my magically shrinking build size with subsequent alpha builds

See original GitHub issue

I am a new web dev and I would love an explanation or resources explaining my magically shrinking build folder size with subsequent alpha releases of create-react-app. I have spent a lot of time and energy making my current client-side React as fast as possible through HTTP/2 push, dynamic imports, webP images, optimizing critical rendering paths, just to name a few and for the most part with some success. My app’s LightHouse score went from the 70’s to the high 80’s but, now with the latest alpha I’m making me rethink my optimizations due to my LightHouse scores tanking.

next.66cc7a90: screen shot 2018-06-18 at 12 17 38 am vs next.3e165448: screen shot 2018-06-18 at 12 16 18 am

From 1.1.4 to 66cc7a90 I found most of my savings came from smaller source maps but, 3e165448 is some next level stuff.

React-scripts version build folder size
1.1.4 12.6 megs.
2.0.0-next.66cc7a90 8.3 megs.
2.0.0-next.3e165448 4.6 megs.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
audiolioncommented, Jul 11, 2018

This has already been covered but I just want to state that I am observing the exact same issue as #4631 where before code splitting on routes would break up my vendor chunks into ~300kb pieces, with 2.0 my vendor is huge and my app code is ~30kb. Code splitting reduces my app code to ~10kb chunks and increases my already big vendor chunk by ~20kb, so it is actually hurting performance.

I think the vendor splitting can be useful but there needs to be some way to split out vendor chunks or perhaps keep the 1.x behavior.

2reactions
Timercommented, Jun 18, 2018

Excellent @wildpow, thank you! I hope to have some free time soon to get to the bottom of this. If anyone can look at is sooner, please do!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reduce your Unity Build Size with some quick shrinking Tips ...
Check out the Course: https://bit.ly/3i7lLtH------- Shrink your Unity3D project build size with a few simple tricks.
Read more >
Optimizing a build for size - Godot Docs
This tutorial aims to give an overview on different methods to create a smaller binary. Before continuing, it is recommended to read the...
Read more >
Reducing the file size of your build - Unity - Manual
The Editor Log provides a summary of Assets broken down by type, and then lists all the individual Assets in order of size...
Read more >
How to reduce the android app build size! - Unity Forum
When i run my app size of apk will 21 MB. even i enabled proguard. i use android studio to run project. in...
Read more >
PiDP-8/I Software: Shrinking the test regime? - Tangentsoft
The various .os8 scripts that create each 3rd party package .tu56 image knows the manifest of what's on the image and from where,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found