gulp.task('staging:screens', function () {
  gulp.src('./staging/*.html')
    .pipe(localScreenshots({
      width: ['1600', '1000', '480', '320'],
      path: 'staging/',
      folder: './staging/screens/'
    }));
});
Example #2
0
gulp.task('screens', function () {
	return gulp.src('./src/demo.html')
	           .pipe(screenshot({
	            	width: ['1600', '1000', '480', '320'],
	            	path:'src',
	            	folder: './img'
	             }));
});
Example #3
0
gulp.task('screenshot', function () {
  gulp.src('./build/**/*.html')
  .pipe(localScreenshots({
    server: false,
    port: 3020,
    timeout: 500,
    type: 'png'
   }))
});
Example #4
0
gulp.task(tasks.screens.name, function() {
  return gulp.src(tasks.screens.src)
    .pipe(gshot(tasks.screens.opts))
    .on('error', gutil.log);
});