Licence
MIT
Version
0.1.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0
Web Builder Module - Create SitemapIndex file
This module allows the @deskeen/web-builder engine to create a sitemapindex file.
Install
npm install @deskeen/web-builder
npm install @deskeen/web-builder-create-sitemapindex-xml
Usage
And add the module to the list of modules:
const builder = require('@deskeen/web-builder')
const builder.build([
source: [
// List of files or directories
],
modules: [
[
'@deskeen/web-builder-create-sitemapindex-xml',
{
urls: [
// List of sitemap URLs
],
path: '/sitemapindex/path', // Path where file will be created
filename: 'sitemap.xml', // Optional filename. Defaults to "sitemap.xml"
}
]
]
])