This repository has been archived by the owner on May 15, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eeb65a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit enables minification using
UglifyJsPlugin
.UglifyJS is not the only tool that minifies the code. There’re other minifiers that could compress code better or worse – e.g. Babel Minify and Google Closure Compiler. Give them a try!
Sizes
bundle.js
went down from 1.01 MB to 399 kB.Bundle difference
Here’s the bundle before and after the commit: