gulp-sitemap-files
v1.0.2
Published
Gulp plugin to get all files listed in a sitemap
Downloads
35
Maintainers
Readme
gulp-sitemap-files
A Gulp plugin to get all files listed in a sitemap. See sitemaps.org/protocol.html and pgilad/gulp-sitemap.
Information
Installation
npm install gulp-sitemap-files
Usage
var gulp = require('gulp');
var sitemapFiles = require('gulp-sitemap-files');
var clean = require('gulp-clean');
gulp.task('clean', function() {
gulp.src('./sitemap.xml')
.pipe(sitemapFiles('http://www.example.com/'))
.pipe(clean());
});
gulp.task('default', ['clean']);
Arguments
sitemapFiles(siteUrl)
siteUrl
- string.
Notes
- It it assumed the sitemap is at the root.
- As far as default files go, only HTML files are supported right now (i.e.
http://www.example.com/
->http://www.example.com/index.html
). If you need anything more, create an issue explaining how you'd like it to work :).