mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix stomped-on assetPathPrefix in addAssetDir
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user