nl_tokens: Call when finished with compression
pl_tokens: 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 . <mask> ) ; 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 ; }