From 96abc82f54b8ca05605bb8f5334e734a6616fd14 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 20 Sep 2013 13:45:24 -0700 Subject: [PATCH] Don't build in production. --- server.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/server.js b/server.js index 909e14b..5536fee 100644 --- a/server.js +++ b/server.js @@ -31,13 +31,12 @@ var clientApp = new Moonboots({ stylesheets: [ __dirname + '/public/css/otalk.css' ], - browserify: { - debug: false - }, server: app, beforeBuild: function () { - var clientFolder = __dirname + '/clientapp'; - templatizer(clientFolder + '/templates', clientFolder + '/templates.js'); + if (config.isDev) { + var clientFolder = __dirname + '/clientapp'; + templatizer(clientFolder + '/templates', clientFolder + '/templates.js'); + } } });