Enable minification for production builds #738
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enabling minification reduces bundle size significantly while maintaining full debugging capability through source maps.
Size reductions (what consumers download over network):
📦 STANDARD BUILD
ES Module:
Raw: 2,299 KB → 1,714 KB (25.4% reduction)
Gzipped: 486 KB → 423 KB (12.9% reduction)
UMD Module:
Raw: 2,425 KB → 1,361 KB (43.8% reduction)
Gzipped: 492 KB → 384 KB (21.9% reduction)
📦 BUNDLED BUILD (with styled-components)
ES Module:
Raw: 2,361 KB → 1,767 KB (25.1% reduction)
Gzipped: 506 KB → 441 KB (12.7% reduction)
UMD Module:
Raw: 2,487 KB → 1,400 KB (43.7% reduction)
Gzipped: 511 KB → 400 KB (21.8% reduction)
Average: 34.5% reduction (raw), 17.3% reduction (gzipped)
Background:
Benefits:
Consumer Impact: