patrickfuller / imolecule

An embeddable webGL molecule viewer and file format converter.
http://patrickfuller.github.io/imolecule/
MIT License
86 stars 18 forks source link

How to generate the .min.js files? #4

Closed bjonnh closed 9 years ago

bjonnh commented 9 years ago

I'd like to make changes to imolecule.js (trying to correct the other issue I raised), but couldn't find a way to regenerate the imolecule.min.js correctly…

patrickfuller commented 9 years ago

To compact js, use a minifier. I use uglifyJS, and the command I run is:

uglifyjs three.min.js TrackballControls.js ShaderToon.js imolecule.js > build/imolecule.min.js

I'll add this to the readme.

bjonnh commented 9 years ago

Wonderful, thanks!