oliverdavies.uk/gulp/images.coffee
2016-04-19 09:49:33 +01:00

12 lines
440 B
CoffeeScript

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', ->
gulp.copy gulp.config.assetsDir + '/images/**/*', gulp.config.outputDir + '/images'