From 11bcdbdb27d7dc3c4335f86de9255f05092b9e35 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 3 Apr 2017 23:15:25 +0200 Subject: [PATCH] Revert "optimize jpg with jpegoptim" This reverts commit e389e0884145a49bdd5687cc7063d3da2a78bb8f. --- gulpfile.babel.js | 19 +++++++++---------- package.json | 3 +-- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 6077ea0a..ba557b45 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -1,15 +1,14 @@ 'use strict' import { src, dest, parallel, series, watch } from 'gulp' -import plugins from 'gulp-load-plugins' -import del from 'del' -import pkg from './package.json' -import parallelize from 'concurrent-transform' -import browser from 'browser-sync' -import autoprefixer from 'autoprefixer' -import cssnano from 'cssnano' -import critical from 'critical' -import imageminJpegoptim from 'imagemin-jpegoptim' +import plugins from 'gulp-load-plugins' +import del from 'del' +import pkg from './package.json' +import parallelize from 'concurrent-transform' +import browser from 'browser-sync' +import autoprefixer from 'autoprefixer' +import cssnano from 'cssnano' +import critical from 'critical' // load plugins const $ = plugins() @@ -253,7 +252,7 @@ export const icons = () => src(iconset.icons) // const imageminPlugins = [ $.imagemin.gifsicle({ interlaced: true }), - imageminJpegoptim(), + $.imagemin.jpegtran(), $.imagemin.optipng({ optimizationLevel: 5 }), $.imagemin.svgo({ plugins: [{removeViewBox: false }]}) ] diff --git a/package.json b/package.json index 8d0fd299..c36c0983 100644 --- a/package.json +++ b/package.json @@ -53,8 +53,7 @@ "gulp-stylus": ">=2.3.1", "gulp-svg-sprite": ">=1.2.2", "gulp-uglify": ">=1.2.0", - "gulp-util": ">=3.0.6", - "imagemin-jpegoptim": ">=5.0.0" + "gulp-util": ">=3.0.6" }, "engines": { "node": ">=5.0.0"