Skip to content

Commit

Permalink
Merge pull request #4 from puggan/master
Browse files Browse the repository at this point in the history
Replace depricated gulp-util
  • Loading branch information
leidottw authored Feb 14, 2020
2 parents 13ff0d9 + f37f827 commit 72fa45b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const through = require('through2');
const gutil = require('gulp-util');
const PluginError = gutil.PluginError;
const log = require('fancy-log');
const PluginError = require('plugin-error');
const pngquant = require('pngquant-bin');
const execFileSync = require('child_process').execFileSync;
const spawnSync = require('child_process').spawnSync;
Expand Down Expand Up @@ -39,7 +39,7 @@ function gulpPngquant(options, customPngquantPath) {
// tell the stream engine that we are done with this file
cb();
}, function(flush) {
gutil.log('Finished', '\'' + chalk.cyan(PLUGIN_NAME));
log('Finished', '\'' + chalk.cyan(PLUGIN_NAME));
flush();
});

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
"author": "leidottw",
"license": "MIT",
"dependencies": {
"chalk": "1.1.3",
"gulp-util": "3.0.7",
"pngquant-bin": "3.1.1",
"through2": "2.0.1"
"chalk": "^3.0.0",
"fancy-log": "^1.3.3",
"plugin-error": "^1.0.1",
"pngquant-bin": "^5.0.2",
"through2": "^3.0.1"
}
}

0 comments on commit 72fa45b

Please sign in to comment.