allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [46/46] allura git commit: [#7919] use minified react in non-development situations
Date Fri, 16 Oct 2015 17:07:42 GMT
[#7919] use minified react in non-development situations


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/096803b7
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/096803b7
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/096803b7

Branch: refs/heads/db/7919
Commit: 096803b74f9fcea602ca4dad5d680e4733c5dd35
Parents: 2e6d510
Author: Dave Brondsema <dave@brondsema.net>
Authored: Fri Oct 16 13:06:45 2015 -0400
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Fri Oct 16 13:06:45 2015 -0400

----------------------------------------------------------------------
 Allura/allura/templates/jinja_master/master.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/096803b7/Allura/allura/templates/jinja_master/master.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/jinja_master/master.html b/Allura/allura/templates/jinja_master/master.html
index 68a6741..9549b1f 100644
--- a/Allura/allura/templates/jinja_master/master.html
+++ b/Allura/allura/templates/jinja_master/master.html
@@ -27,7 +27,7 @@
 {% do g.register_forge_js('js/jquery.notify.js') %}
 {% do g.register_forge_js('js/browser-polyfill.js') %}
 {% do g.register_forge_js('js/underscore-min.js') %}
-{% do g.register_forge_js('js/react-with-addons.js') %}
+{% do g.register_forge_js('js/react-with-addons' + ('' if h.asbool(config.get('debug')) else
'.min') + '.js') %}
 {% do g.register_forge_js("js/react-drag.js") %}
 {% do g.register_forge_js('js/react-reorderable.js') %}
 {% do g.register_forge_js('js/jquery.tooltipster.js') %}


Mime
View raw message