website-visual-diff
Compare your website before and after making changes
Using with gulp
var VISUAL_DIFF_CONFIG = {
baseFolder: path.join(__dirname, '/visual_diff'),
urlBase: 'http://localhost:8000',
cookies: [{
url: 'http://localhost:8000/',
name: 'my-secret-cookie',
value: 'any-cookie',
}],
sizes: [{
width: 320,
height: 568,
}, {
width: 1280,
height: 800,
}],
pages: [{
name: 'events',
url: `/events/`,
}, {
name: 'appointments',
url: `/appointment/`,
}, {
name: 'account',
url: `/account/`,
}]
}
gulp.task('diff:cache', function() {
return vdiff.cache(VISUAL_DIFF_CONFIG);
})
gulp.task('diff:compare', function() {
return vdiff.compare(VISUAL_DIFF_CONFIG);
})
gulp.task('diff:copy', function() {
return vdiff.copy(VISUAL_DIFF_CONFIG);
})
gulp.task('diff:clean', function() {
return vdiff.clean(VISUAL_DIFF_CONFIG);
})