Minify images when copied

This commit is contained in:
Oliver Davies 2016-04-19 09:17:37 +01:00
parent 3ebe691f4c
commit 0a32f3848a

View file

@ -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'