index.js
function( err, streams ) {

			// Get base name
			var path = originalFile.path;
			var parts = path.split("."); parts.pop();
			var baseName =  parts.join(".");

	    	// Push each stream to output
	    	for (var i=0; i<streams.length; i++) {
	    		var f = originalFile.clone();
	    		f.contents = streams[i][0]; // Content
	    		f.path = baseName + streams[i][1]; // Suffix
				self.push(f);
	    	}

	    	// We are done
			done();
			return;
	    }
function( err, streams ) {

			// Get base name
			var path = originalFile.path;
			var parts = path.split("."); parts.pop();
			var baseName =  parts.join(".");

	    	// Push each stream to output
	    	for (var i=0; i<streams.length; i++) {
	    		var f = originalFile.clone();
	    		f.contents = streams[i][0]; // Content
	    		f.path = baseName + streams[i][1]; // Suffix
				self.push(f);
	    	}

	    	// We are done
			done();
			return;
	    }
function ( err , streams ) { // Get base name var path = originalFile . path ; var parts = path . split ( "." ) ; parts . pop ( ) ; var baseName = parts . join ( "." ) ; // Push each stream to output for ( var i = 0 ; i < streams . length ; i ++ ) { var f = originalFile . clone ( ) ; f . contents = streams [ i ] [ 0 ] ; // Content f . path = baseName + streams [ i ] [ 1 ] ; // Suffix self . push ( f ) ; } // We are done done ( ) ; return ; }
Call when finished with compression
Call when finished with compression