diff --git a/gulp/build.coffee b/gulp/build.coffee index 0945036a..9f7feaa1 100644 --- a/gulp/build.coffee +++ b/gulp/build.coffee @@ -1,4 +1,4 @@ g = require 'gulp' g.task 'build', ['clean'], -> - g.start 'fonts', 'styles', 'vendor' + g.start 'fonts', 'images', 'styles', 'vendor' diff --git a/gulp/clean.coffee b/gulp/clean.coffee index d9a34cac..1a2dff31 100644 --- a/gulp/clean.coffee +++ b/gulp/clean.coffee @@ -7,6 +7,7 @@ g.task 'clean', -> 'output_*/assets/js', 'source/assets/css', 'source/assets/fonts', + 'source/assets/images/*/thumbnails', 'source/assets/js', ], read: false .pipe g.p.clean() diff --git a/gulp/images.coffee b/gulp/images.coffee index 950051d0..5ce4b863 100644 --- a/gulp/images.coffee +++ b/gulp/images.coffee @@ -1,6 +1,14 @@ g = require 'gulp' -g.task 'images', -> - g.src 'source/assets/images/*' - .pipe g.p.imagemin() - .pipe g.dest 'source/assets/images' +g.task 'images', -> g.start 'meetup-thumbnails', 'minify-images' + +g.task 'meetup-thumbnails', -> + g.src 'source/assets/images/meetups/originals/*' + .pipe g.p.imageResize + height: 50 + .pipe g.dest 'source/assets/images/meetups/thumbnails' + +g.task 'minify-images', -> + g.src 'source/assets/images/*' + .pipe g.p.imagemin() + .pipe g.dest 'source/assets/images'