From a3f453b897ce132340eb533e3372732ccc119935 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Mon, 4 May 2015 09:59:40 +0200 Subject: [PATCH] only imagemin on deploy --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index df51fdda..1c51e99d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -407,7 +407,7 @@ gulp.task("copy-fonts", function() { gulp.task("copy-images", function() { return gulp.src(paths.app + "/images/**/*") - .pipe(imagemin({progressive: true})) + .pipe(gulpif(isDeploy, imagemin({progressive: true}))) .pipe(gulp.dest(paths.dist + "/images/")); });