Advertisement
Guest User

Untitled

a guest
Mar 9th, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. gulp.task('images', function() {
  2.   return gulp.src('./screens/**/*.png')
  3.   // Works correctly with or without my memo plugin when imagemin is removed.
  4.   .pipe(memo('_memo/gulp-memo.json'))
  5.   // Only moves a single file to dest unless this is commented out.
  6.   .pipe(imagemin())
  7.   // Makes the file containing a single folder near the end of the stream (but curiously, not the last file in the stream) unless imagemin is removed.
  8.   .pipe(gulp.dest('./cdn/img'));
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement