allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject [42/50] [abbrv] allura git commit: [#7919] use minified react in non-development situations
Date Wed, 28 Oct 2015 18:02:04 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/d78b111d
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/d78b111d
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/d78b111d

Branch: refs/heads/hs/7919
Commit: d78b111df5403556ee490b2ed031fb67d02d6341
Parents: 3d191bf
Author: Dave Brondsema <dave@brondsema.net>
Authored: Fri Oct 16 13:06:45 2015 -0400
Committer: Heith Seewald <hseewald@hsmb.local>
Committed: Wed Oct 28 14:00:49 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/d78b111d/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 0032b74..be6515e 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