From 0a32f3848a34aa28d0efa24d290dedf618238739 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 19 Apr 2016 09:17:37 +0100 Subject: [PATCH] Minify images when copied --- gulp/images.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gulp/images.coffee b/gulp/images.coffee index 302b1479..086329c4 100644 --- a/gulp/images.coffee +++ b/gulp/images.coffee @@ -8,4 +8,6 @@ gulp.task 'meetup-thumbnails', -> .pipe gulp.dest gulp.config.outputDir + '/images/meetups/thumbnails' gulp.task 'copy-images', -> - gulp.copy gulp.config.assetsDir + '/images/**/*', gulp.config.outputDir + '/images' + gulp.src gulp.config.assetsDir + '/images/**/*' + .pipe gulp.plugins.imagemin() + .pipe gulp.dest gulp.config.outputDir + '/images'