Skip to content

Commit

Permalink
Switch to imagemin
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Jul 31, 2016
1 parent 07b84bd commit 99d58ee
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var gulp = require('gulp-help')(require('gulp')),
cleanCSS = require('gulp-clean-css'),
del = require('del'),
fs = require('fs-extra'),
imageop = require('gulp-image-optimization'),
imagemin = require('gulp-imagemin'),
jshint = require('gulp-jshint'),
notify = require('gulp-notify'),
path = require('path'),
Expand Down Expand Up @@ -61,11 +61,7 @@ function buildFonts(source, target, base) {
// Optimizes images in source and outputs them in target
function buildImages(source, target) {
return gulp.src(source)
.pipe(imageop({
optimizationLevel: 5,
progressive: true,
interlaced: true
}))
.pipe(imagemin())
.pipe(gulp.dest(target))
.pipe(notify({
title: 'Postleaf',
Expand Down

0 comments on commit 99d58ee

Please sign in to comment.