Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
florianburger committed Jul 18, 2019
1 parent 76dbd27 commit c4c86aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gulp.task("Sitemap", function(cb) {
restrictToBasepath: false,
maxEntriesPerFile: 50000,
maxDepth: 0,
filepath: "./sitemap.xml",
filepath: "./sitemap123.xml",

ignore: url => {
return url.indexOf("/page-to-ignore") != -1;
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-sitemap-generator",
"version": "2.0.0",
"version": "2.0.1",
"description": "Create a XML sitemap for your website.",
"main": "src/SitemapGenerator.js",
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion src/SitemapGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class SitemapGenerator extends EventEmitter {
...options
};


if (options.ignoreInvalidSSL) {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
}
Expand Down Expand Up @@ -125,7 +126,7 @@ class SitemapGenerator extends EventEmitter {
crawler.on("complete", () => {
var content = me.generateSitemap(items);

fs.writeFile("./sitemap.xml", content, "utf-8", () => {
fs.writeFile(options.filepath, content, "utf-8", () => {
me.emit("complete", content, items);
});
});
Expand Down

0 comments on commit c4c86aa

Please sign in to comment.