nl_tokens: create middleware for handling shader files
pl_tokens: function middleware ( file , options ) { var matcher = new RegExp ( "\\.(?:" + middleware . extensions . join ( "|" ) + ")$" ) if ( ! matcher . test ( file ) ) return through ( ) ; var input = '' ; var write = function ( buffer ) { input += buffer ; } var end = function ( ) { this . queue ( createModule ( input , <mask> ) ) ; this . queue ( null ) ; } return through ( write , end ) ; }