Created
April 29, 2013 14:34
-
-
Save cburgdorf/5481946 to your computer and use it in GitHub Desktop.
This file contains 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
'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