|
|
@@ -30,3 +30,5 @@ const xml = `<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> |
|
|
|
${ routes.map (route => ` <url><loc>${ DOMAIN }${ route }</loc></url>`).join ('\n') } |
|
|
|
</urlset>` |
|
|
|
|
|
|
|
fs.writeFileSync (path.resolve ('dist/sitemap.xml'), xml) |