tasks/img.js
// Remove temp JPEGtran file when finished
Remove temp JPEGtran file when finished
Remove temp JPEGtran file when finished
function clean() {
        exists(tmpfile, function(exists) {
          if (!exists) return cb();
          grunt.log.subhead('** Removing: ' + tmpfile);
          fs.unlink(tmpfile, function(err) {
            if (err) {
              grunt.log.error(err);
              return cb(false);
            }
            return cb();
          });
        });
      }
function clean ( ) { exists ( tmpfile , function ( exists ) { if ( ! exists ) return cb ( ) ; grunt . log . subhead ( '** Removing: ' + tmpfile ) ; fs . unlink ( tmpfile , function ( err ) { if ( err ) { grunt . log . error ( err ) ; return cb ( false ) ; } return cb ( ) ; } ) ; } ) ; }
Remove temp JPEGtran file when finished
Remove temp JPEGtran file when finished