Closed
Description
Description of the problem
Size of three.min.js
can be further reduced by running uglify on the closure emitted minified JS:
$ wc -c build/three.min.js
503713 build/three.min.js
$ cat build/three.min.js | gzip | wc -c
127852
$ node_modules/.bin/uglifyjs -V
uglify-js 2.8.12
$ node_modules/.bin/uglifyjs build/three.min.js -m -c warnings=false | wc -c
501969
$ node_modules/.bin/uglifyjs build/three.min.js -m -c warnings=false | gzip | wc -c
124992
uncompressed savings: 1744 bytes
gzip savings: 2860 bytes
Unit tests results are unchanged with additional uglify of build/three.min.js
.
Perhaps I am missing something obvious.
Three.js version
- Dev
- r84
- ...
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS
Hardware Requirements (graphics card, VR Device, ...)
Metadata
Metadata
Assignees
Labels
No labels