index.js
function(vendorTree) {
    const pubnubPath = path.dirname(require.resolve('pubnub/dist/web/pubnub.js'));
    const pubnubTree = new Funnel(pubnubPath, {
      src: 'pubnub.js',
      dest: './',
      annotation: 'Funnel (PubNub)'
    });

    return mergeTrees([vendorTree, pubnubTree]);
  }
function(vendorTree) {
    const pubnubPath = path.dirname(require.resolve('pubnub/dist/web/pubnub.js'));
    const pubnubTree = new Funnel(pubnubPath, {
      src: 'pubnub.js',
      dest: './',
      annotation: 'Funnel (PubNub)'
    });

    return mergeTrees([vendorTree, pubnubTree]);
  }
function ( vendorTree ) { const pubnubPath = path . dirname ( require . resolve ( 'pubnub/dist/web/pubnub.js' ) ) ; const pubnubTree = new Funnel ( pubnubPath , { src : 'pubnub.js' , dest : './' , annotation : 'Funnel (PubNub)' } ) ; return mergeTrees ( [ vendorTree , pubnubTree ] ) ; }
Resolve the path to the PubNub web
bundle and transpose the files in
that path into the project's vendor
folder during build time.

@method treeForVendor

@params {Object} vendorTree
The broccoli tree representing vendor files.
Resolve the path to the PubNub web bundle and transpose the files in that path into the project s vendor folder during build time .