JavaScript Preprocessing

The various versions of the Bootstrap library are all generated from the same codebase. First gcc’s code preprocessing capabilities were used (through cpp). This is possible due to the syntactical similarity between C and JavaScript. Later this was replaced by a modified version of Filepp for more flexibility. See the modified filepp.pl.

A combination of jsstrip.py and sed is used to strip comments, compress the code, or leave it untouched, depending on the parameters passed to build.sh. For the details, have a look at preprocess.sh.