This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PLUGIN_NAME = 'gulp-pngquant'; | |
var through = require('through2'); | |
var gutil = require('gulp-util'); | |
var log = gutil.log; | |
var PluginError = gutil.PluginError; | |
var pngquant = require('pngquant'); | |
module.exports = function (options) { | |
var stream = through.obj(function (file, enc, callback) { | |
if (file.isNull()) { |