grunt-includes
Advanced tools
Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "grunt-includes", | ||
"description": "Include other files within a file.", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"author": "vanetix <matmcfarland@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "Gruntfile.js", |
@@ -205,3 +205,16 @@ /** | ||
next = path.join((opts.includePath || path.dirname(p)), fileLocation); | ||
// Try to locate the file through multiple includePath if array | ||
if(grunt.util.kindOf(opts.includePath) === 'array') { | ||
opts.includePath.some(function(p) { | ||
next = path.join(p, fileLocation); | ||
return grunt.file.isFile(next); | ||
}); | ||
if(!next) { | ||
next = path.join(path.dirname(p), fileLocation); | ||
} | ||
} else { | ||
next = path.join((opts.includePath || path.dirname(p)), fileLocation); | ||
} | ||
content = recurse(next, opts, included, indents + indent); | ||
@@ -208,0 +221,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15315
202