skip links in HTML comments #896

This commit is contained in:
soulgalore 2016-05-13 08:09:12 +02:00
parent 8233a18f05
commit 616dbab278
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ module.exports = {
crawler.maxDepth = this.options.depth;
crawler.downloadUnsupported = false;
crawler.allowInitialDomainChange = true;
crawler.parseHTMLComments= false;
crawler.addFetchCondition(function(parsedURL) {
const extension = path.extname(parsedURL.path);
// Don't try to download these, based on file name.