On Sep 13, 4:45 pm, "Priest, James (NIH/NIEHS) [C]"
<[EMAIL PROTECTED]> wrote:
> This seems like a great
> solution to having editable scripts in your repository but deploying
> minimized scripts to production.

Be careful with that, though, because minimization is a change to the
source, which means that the source you test is NOT the source which
you're uploading to your production environment. In working
environments with strict QA controls in place (e.g. a bank), this type
of "shortcut" would not be considered acceptable work practice.

While minification/packing rarely leads to semantic changes in JS
code, it does on occasion happen. It is easy to write code which might
run in uncompressed form yet may not be correct once minification
occurs (e.g., forgetting to add a semicolon after: var x = function()
{...};).

Reply via email to