From 70b5c631c6feb2dc312f0eb068e2e98ce1734409 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 11 Nov 2014 13:53:32 -0500 Subject: [PATCH] if dev, compile view scripts only; let rjs dynamically load module scripts fixes a bug introduced @ 11c83079f2775eb48fcac598a0dbc8d60d3b8c3b --- src/meta/js.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/meta/js.js b/src/meta/js.js index 85dad13ab5..b8ce5e2bbf 100644 --- a/src/meta/js.js +++ b/src/meta/js.js @@ -54,10 +54,6 @@ module.exports = function(Meta) { }; Meta.js.loadRJS = function(callback) { - if (global.env === 'development') { - return callback(); - } - var rjsPath = path.join(__dirname, '../../public/src'); async.parallel({ @@ -65,6 +61,10 @@ module.exports = function(Meta) { utils.walk(path.join(rjsPath, 'client'), next); }, modules: function(next) { + if (global.env === 'development') { + return next(null, []); + } + utils.walk(path.join(rjsPath, 'modules'), next); } }, function(err, rjsFiles) {