Last active
August 21, 2020 23:54
-
-
Save Lego2012/8a2114ab726cb803fe3941fc33403f75 to your computer and use it in GitHub Desktop.
The following task will run after the build task, it will send a request to Google and Bing, informing them that the site has been updated and that they should re-index the site. #gulp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
request = require('request'); | |
gulp.task('seo', ['build'], function(cb) { | |
request('http://www.google.com/webmasters/tools/ping?sitemap={URL TO YOUR SITEMAP.XML}'); | |
request('http://www.bing.com/webmaster/ping.aspx?siteMap={URL TO YOUR SITEMAP.XML}'); | |
cb(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment