code: function() {
              var sitemap = sm.createSitemap({
                  cacheTime: 600000,
                  hostname: url.resolve(this.config.get('pluginsConfig.sitemap.hostname'), '/'),
                  urls: urls
              });
  
              var xml = sitemap.toString();
  
              return this.output.writeFile('sitemap.xml', xml);
          }
docs: Write sitemap.xml