Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Update loader.js #65

Merged
merged 1 commit into from Mar 27, 2013
Jump to file or symbol
Failed to load files and symbols.
+4 −3
Split
View
@@ -130,15 +130,16 @@ mods = {
scan: function() {
var self = this,
dirs = fs.readdirSync(this.start),
- metaFiles = [];
+ metaFiles = [],
+ base = self.base || '';
dirs.forEach(function(d) {
if (self.strict) {
- if (!util.exists(path.join(self.base, d, 'build.json'))) {
+ if (!util.exists(path.join(base, d, 'build.json'))) {
return; //No build.json file, exclude this automatically
}
}
- var p = path.join(self.base, d, 'meta'),
+ var p = path.join(base, d, 'meta'),
files;
if (util.exists(p)) {
files = fs.readdirSync(p);