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"