gulp-sitemap
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -37,4 +37,4 @@ 'use strict'; | ||
return through.obj(function (file, enc, cb) { | ||
//pass through empty file | ||
if (file.isNull()) { | ||
//pass through empty files but not html | ||
if (file.isNull() && !/\.html?$/.test(path.extname(file.path))) { | ||
this.push(file); | ||
@@ -90,4 +90,4 @@ return cb(); | ||
cwd: firstFile.cwd, | ||
base: firstFile.base, | ||
path: path.join(firstFile.base, config.fileName), | ||
base: firstFile.cwd, | ||
path: path.join(firstFile.cwd, config.fileName), | ||
contents: new Buffer(sitemap.prepareSitemap(entries, config)) | ||
@@ -94,0 +94,0 @@ })); |
@@ -13,6 +13,4 @@ 'use strict'; | ||
//insert xml heaader | ||
entries.unshift(xmlHeader); | ||
//close off urlset | ||
entries.push('</urlset>'); | ||
return entries.join(config.newLine); | ||
entries = xmlHeader.concat(entries).concat(['</urlset>']); | ||
return entries.join(config.newLine).toString(); | ||
}; | ||
@@ -19,0 +17,0 @@ |
{ | ||
"name": "gulp-sitemap", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Generate a search engine friendly sitemap.xml using a Gulp stream", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
9734
129