three.js
three.js copied to clipboard
Size
Is it possible to do like this
Some build page with checkboxes on needed features or files. That instead of 97 kb of gzipped lib we get about 35 kb.
For example we need some simple 3D sample and do not want to include so big lib file for site.
The build system supports this already.
In /utils/build there is build.py, and an /includes directory.
The example build command:
python build.py --include common --include extras --minify --output ../../build/three.min.js
Will include the files referenced in common.json and extras.json in the build. Simply write your own list of necessary source files, drop it in ./utils/build/includes and use --include file for your build.