Closed Yuriy-Svetlov closed 7 years ago
var execFile = require('child_process').execFile; var jpegtran = require('jpegtran-bin'); //gulp jpgmin gulp.task('jpgmin', function() { return execFile(jpegtran, ['-min', 'build/img/', 'src/img/**/*.jpg'], function (err) { console.log('Image minified!'); }); });
Not a jpegtran-bin issue. Use https://stackoverflow.com/ for gulp.js support questions.