From 5c6617660d0efd3a7eb31a98b8ee231d4e3c2941 Mon Sep 17 00:00:00 2001 From: Emily Stark Date: Mon, 20 May 2013 22:12:39 -0700 Subject: [PATCH] Fix stomped-on assetPathPrefix in addAssetDir --- tools/bundler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bundler.js b/tools/bundler.js index 6ae32f1a55..8710f3942f 100644 --- a/tools/bundler.js +++ b/tools/bundler.js @@ -676,7 +676,7 @@ _.extend(ClientTarget.prototype, { exclude: exclude }; - var walk = function (dir, assetPath) { + var walk = function (dir, assetPathPrefix) { _.each(fs.readdirSync(dir), function (item) { // Skip excluded files var matchesAnExclude = _.any(exclude, function (pattern) { @@ -686,7 +686,7 @@ _.extend(ClientTarget.prototype, { return; var absPath = path.resolve(dir, item); - assetPath = path.join(dir, item); + var assetPath = path.join(assetPathPrefix, item); if (fs.statSync(absPath).isDirectory()) { walk(absPath, assetPath); return;