Skip to content

Commit

Permalink
Add assetgraph-plugin-sitemap for sitemap support
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Jul 28, 2021
1 parent f1888dd commit 58e4a95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const AssetGraph = require('assetgraph');
const asyncLib = require('async');
const request = require('request');
const extendWithSitemap = require('assetgraph-plugin-sitemap');
const version = require('../package.json').version;
const relationDebugDescription = require('./relationDebugDescription');
const getModifiedHref = require('./getModifiedHref');
Expand Down Expand Up @@ -90,6 +91,8 @@ async function hyperlink(
canonicalRoot,
});

extendWithSitemap(ag);

ag.teepee.headers['User-Agent'] = hyperlinkUserAgent;
ag.teepee.timeout = 30000;

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"dependencies": {
"@munter/tap-render": "^0.2.0",
"assetgraph": "^7.1.0",
"assetgraph-plugin-sitemap": "^1.0.0",
"async": "^3.1.0",
"hreftypes": "^1.0.1",
"pretty-bytes": "^5.2.0",
Expand Down

0 comments on commit 58e4a95

Please sign in to comment.