UNPKG

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) 341 B
'use strict' module.exports = { detect: function (command) { return !!command.break }, perform: function (grunt, target, client, command) { const reason = command.break grunt.output.writeln('Breaking the loop: "' + reason + '".') var error = new Error('Break the loop') error.break = reason throw error } }