IMA-WorldHealth / bhima-1.X

A hospital information system for developing countries.
GNU General Public License v2.0
10 stars 14 forks source link

CHORE(build): ensure js minification works #876

Closed jniles closed 9 years ago

jniles commented 9 years ago

This commit creates the options available for JavaScript minification in production. The options here have been tested, and reduce the bhima script size by more than 50%.

Additionally, the order of IIFE has been change so that a single IIFE wraps the entire bhima script, rather than multiple created for each bhima javascript file. This should produce smaller file sizes and slight performance improvements.

NOTE: The minification option is still turned off in this commit. It should be turned on in production.