From de5e479b5221c24ff789aa6cbfe42673089e65ac Mon Sep 17 00:00:00 2001 From: Andrew Sliwinski Date: Sun, 25 Oct 2015 18:58:17 -0400 Subject: [PATCH] Minify react & react-dom in production --- server/config.js | 5 ++++- server/template.html | 6 ++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/server/config.js b/server/config.js index a11cf8bd2..3d6f91255 100644 --- a/server/config.js +++ b/server/config.js @@ -13,5 +13,8 @@ module.exports = { og_image_height: 860, // Analytics & Monitoring - ga_tracker: process.env.GA_TRACKER || '' + ga_tracker: process.env.GA_TRACKER || '', + + // Use minified JS libraries + min: (process.env.NODE_ENV === 'production') ? '.min' : '' }; diff --git a/server/template.html b/server/template.html index b2c0452f7..6102ec4bf 100644 --- a/server/template.html +++ b/server/template.html @@ -41,8 +41,8 @@ - - + + @@ -59,7 +59,5 @@ }); ga('send', 'pageview'); - -