only imagemin on deploy
parent
53d94f62a7
commit
a3f453b897
|
@ -407,7 +407,7 @@ gulp.task("copy-fonts", function() {
|
||||||
|
|
||||||
gulp.task("copy-images", function() {
|
gulp.task("copy-images", function() {
|
||||||
return gulp.src(paths.app + "/images/**/*")
|
return gulp.src(paths.app + "/images/**/*")
|
||||||
.pipe(imagemin({progressive: true}))
|
.pipe(gulpif(isDeploy, imagemin({progressive: true})))
|
||||||
.pipe(gulp.dest(paths.dist + "/images/"));
|
.pipe(gulp.dest(paths.dist + "/images/"));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue