krang_combine_js - One JavaScript file to rule them all


   krang_combine_js --verbose


This script is normally called by bin/krang_ctl at Krang startup. It combines all of the JavaScript files in Krang (along with any that are listed in the ExtraJavascriptFiles of installed addons) into a single file. This file is then minimized and then compressed (to send to browsers that support it).

It also takes into account language specific JavaScript files and will create a separate combined file for each AvailableLanguages. If you have a file in your addon that needs to be language specific then you can specify which one ends up in the combined file by using '$lang' in your ExtraJavascriptFiles. For example



The script takes the following options: