Merge pull request #2242 from primalmotion/disable-flag-for-commonjs-environement

NEW: Environment variable to disable CommonJS environement building
This commit is contained in:
Antoine Mercadal committed 2014-11-04 18:08:22 -08:00
commit d63669ac22
1 file changed
+6 -1
@@ -35,7 +35,12 @@ function BundleTask(aName, anApplication)
{
Task.apply(this, arguments);
this.setEnvironments([environment.Browser, environment.CommonJS]);
var ignoreCommonJS = system.env["CAPP_IGNORE_COMMONJS_ENV"];
if (ignoreCommonJS && ignoreCommonJS.toLowerCase() == "no" || ignoreCommonJS == "1")
this.setEnvironments([environment.Browser]);
else
this.setEnvironments([environment.Browser, environment.CommonJS]);
this._author = null;
this._email = null;