Skip to content

Instantly share code, notes, and snippets.

@cburgdorf
Created April 29, 2013 14:34
Show Gist options
  • Save cburgdorf/5481946 to your computer and use it in GitHub Desktop.
Save cburgdorf/5481946 to your computer and use it in GitHub Desktop.
'use strict';
module.exports = function(grunt) {
var fs = require("fs"),
path = require("path"),
phantom = require("grunt-lib-phantomjs").init(grunt);
grunt.registerMultiTask('seo','fetch html snapshots', function(){
phantom.spawn('index.html', {
// Additional PhantomJS options.
options: {
// phantomScript: "phantomjs/main.js"
},
// Complete the task when done.
done: function (err) {
grunt.log.write('wohooo done');
}
});
grunt.log.write('wohooo');
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment