We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 231780b commit 43b1c2dCopy full SHA for 43b1c2d
make_sitemap.js
@@ -100,8 +100,7 @@ module.exports = async function makeSitemap(opts = {}) {
100
// write sitemap to file
101
const sitemapFileName = fileName || 'sitemap.xml'
102
const sitemapFile = path.resolve(distPath, sitemapFileName)
103
- // Ensure dist path
104
- await mkdirp(distPath)
+ await mkdirp(path.dirname(sitemapFile))
105
// Write sitemap
106
await util.promisify(fs.writeFile)(sitemapFile, xml)
107
// Return info
0 commit comments