From 11c83079f2775eb48fcac598a0dbc8d60d3b8c3b Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 11 Nov 2014 13:12:09 -0500 Subject: [PATCH] if env is dev, don't re-compile rjs files faster reboot & easier to debug on browsers that don't support sourcemaps --- src/meta/js.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/meta/js.js b/src/meta/js.js index f586a362e4..c499ee8aec 100644 --- a/src/meta/js.js +++ b/src/meta/js.js @@ -48,11 +48,16 @@ module.exports = function(Meta) { 'public/src/translator.js', 'public/src/helpers.js', 'public/src/overrides.js' - ] + ], + rjs: [] } }; Meta.js.loadRJS = function(callback) { + if (global.env === 'development') { + return callback(); + } + var rjsPath = path.join(__dirname, '../../public/src'); async.parallel({