From eeb2dfd1fca9d4ad2cc728dcc2d0f7c835f2cb82 Mon Sep 17 00:00:00 2001
From: David Baker <dave@matrix.org>
Date: Thu, 11 Jun 2015 17:46:25 +0100
Subject: [PATCH] uglify at the end so we can also mangle names, and don't
 bother uglifying individual modules with -g as it doesn't seem to make any
 difference

---
 example/package.json                                    | 4 ++--
 src/molecules/{HomeServerTextBox.js => ServerConfig.js} | 0
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename src/molecules/{HomeServerTextBox.js => ServerConfig.js} (100%)

diff --git a/example/package.json b/example/package.json
index 7ce2bda7..4e2bc3ad 100644
--- a/example/package.json
+++ b/example/package.json
@@ -13,11 +13,11 @@
     "envify": "^3.4.0",
     "matrix-react-sdk": "../",
     "reactify": "^1.1.1",
-    "uglifyify": "^3.0.1",
+    "uglify-js": "^2.4.23",
     "watchify": "^3.2.1"
   },
   "scripts": {
-    "build": "browserify -t [ envify --NODE_ENV production ] -t reactify -g uglifyify lib/index.js -o bundle.js",
+    "build": "browserify -t [ envify --NODE_ENV production ] -t reactify lib/index.js | uglifyjs -c -m -o bundle.js",
     "start": "watchify -v -d -t reactify lib/index.js -o bundle.js"
   }
 }
diff --git a/src/molecules/HomeServerTextBox.js b/src/molecules/ServerConfig.js
similarity index 100%
rename from src/molecules/HomeServerTextBox.js
rename to src/molecules/ServerConfig.js