oliverdavies.uk/gulp/images.coffee

14 lines
500 B
CoffeeScript
Raw Normal View History

2016-04-12 18:36:43 +00:00
gulp = require 'gulp'
gulp.task 'images', -> gulp.start 'copy-images', 'meetup-thumbnails'
gulp.task 'meetup-thumbnails', ->
gulp.src gulp.config.assetsDir + '/images/meetups/originals/*'
.pipe gulp.plugins.imageResize height: '80'
.pipe gulp.dest gulp.config.outputDir + '/images/meetups/thumbnails'
gulp.task 'copy-images', ->
2016-04-19 08:17:37 +00:00
gulp.src gulp.config.assetsDir + '/images/**/*'
.pipe gulp.plugins.imagemin()
.pipe gulp.dest gulp.config.outputDir + '/images'