User:JHernandez (WMF)/Compressed JS comparison

Size comparison between minification performed by resource loader using uglify JS and using Node's uglify js via webpack.
 * Sources: Popups at commit bbf47538c9ba9e1773c66920d413dce0a0e707c5
 * Compiled files:
 * ResourceLoader minified:
 * Run, then fetch http://localhost:8080/w/load.php?lang=en&modules=ext.popups&only=scripts&skin=vector
 * Webpack+UglifyJS minified:
 * Run  then fetch http://localhost:8080/w/load.php?lang=en&modules=ext.popups&only=scripts&skin=vector

Conclusion
Node's uglify produces 40% smaller code, being 20% after gzip.

Upon inspection on the compiled files, main reason seems to be because of mangling being enabled on the node version, as it seems to be safe now (in the past it was considered unsafe and not recommended). Unsure about if there are other changes on the node version that help make the bundler smaller.