grunt-html-dom-snapshot
Version:
Takes snapshots of the HTML markup on web pages - their immediate DOM content - and screenshots of their viewport - how they look like.
16 lines (13 loc) • 396 B
JavaScript
module.exports = {
detect: function (command) {
return !!command.abort
},
perform: function (grunt, target, client, command) {
const reason = command.abort
grunt.output.writeln('Aborting: "' + reason + '".')
throw new Error('Aborted: "' + reason +
'" in the target "' + target + '".\n' +
JSON.stringify(command))
}
}