three.js icon indicating copy to clipboard operation
three.js copied to clipboard

Size

Open MikeTatsky opened this issue 13 years ago • 1 comments

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.

MikeTatsky avatar Sep 28 '13 09:09 MikeTatsky

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.

Digitoxin avatar Oct 13 '13 14:10 Digitoxin