only imagemin on deploy

stable
Juanfran 2015-05-04 09:59:40 +02:00
parent 53d94f62a7
commit a3f453b897
1 changed files with 1 additions and 1 deletions

View File

@ -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/"));
});