Code structure
- greybox: Generated and compressed JavaScript and CSS is located here
- greybox_source: CSS and JavaScript structured in directories.
It's not recommend that you alter code in the greybox directory, since it's computer generated and very unreadable!
Download Dojo ShrinkSafe
To make the filesize as small as possible GreyBox JavaScript is compressed down using Dojo ShrinkSafe. This library requires Java, so make sure you got Java installed. Download following JAR file:
Place custom_rhino.jar in GreyBox's compression_lib directory.
Compressing GreyBox
Now, you are ready to compress GreyBox. This is done by running a Python script called combiner.py. I.e. you need to download and install Pyhton.
You can run combiner.py in following ways:
- python combiner.py full: Compress everything
- python combiner.py gallery: Compress only gallery related CSS and JavaScript
- python combiner.py window: Compress only window related CSS and JavaScript