index.js
function( err, encContents, decContents ) {

	    	// Emmit errors
			if (err) {
				var error = new PluginError(PLUGIN_NAME, err, { showStack: true });
				self.emit('error', error);
				done();
				return;
			}

			// Get base name
			var dir = path.dirname( originalFile.path );
			var name = path.basename( originalFile.path );
			var parts = name.split("."); parts.pop();
			var baseName = self.config.name || parts.join(".");

			// The encode file
			var f = originalFile.clone();
			f.contents = encContents;
			f.path = path.join( dir, baseName + '-encode.js' );
			self.push(f);

			// The decode file
			var f = originalFile.clone();
			f.contents = decContents;
			f.path = path.join( dir, baseName + '-decode.js' );
			self.push(f);

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

	    	// Emmit errors
			if (err) {
				var error = new PluginError(PLUGIN_NAME, err, { showStack: true });
				self.emit('error', error);
				done();
				return;
			}

			// Get base name
			var dir = path.dirname( originalFile.path );
			var name = path.basename( originalFile.path );
			var parts = name.split("."); parts.pop();
			var baseName = self.config.name || parts.join(".");

			// The encode file
			var f = originalFile.clone();
			f.contents = encContents;
			f.path = path.join( dir, baseName + '-encode.js' );
			self.push(f);

			// The decode file
			var f = originalFile.clone();
			f.contents = decContents;
			f.path = path.join( dir, baseName + '-decode.js' );
			self.push(f);

	    	// We are done
			done();
			return;
	    }
Call when finished with compression