lib/client/bundler/proto.js
function resolveAssetLink(client, type) {
    var defaultPath = '/assets/' + client.name + '/' + client.id + '.' + type,
      pack = options.packedAssets,
      link = pack !== undefined ? (pack.cdn !== undefined ? pack.cdn[type] : void 0) : void 0;
    if (link) {
      if (typeof link === 'function') {
        var file = {
          id: client.id,
          name: client.name,
          extension: type,
          path: defaultPath
        };
        return link(file);
      } else if (typeof link === 'string') {
        return link;
      } else {
        throw new Error('CDN ' + type + ' param must be a Function or String');
      }
    } else {
      return defaultPath;
    }
  }
function resolveAssetLink(client, type) {
    var defaultPath = '/assets/' + client.name + '/' + client.id + '.' + type,
      pack = options.packedAssets,
      link = pack !== undefined ? (pack.cdn !== undefined ? pack.cdn[type] : void 0) : void 0;
    if (link) {
      if (typeof link === 'function') {
        var file = {
          id: client.id,
          name: client.name,
          extension: type,
          path: defaultPath
        };
        return link(file);
      } else if (typeof link === 'string') {
        return link;
      } else {
        throw new Error('CDN ' + type + ' param must be a Function or String');
      }
    } else {
      return defaultPath;
    }
  }
function resolveAssetLink ( client , type ) { var defaultPath = '/assets/' + client . name + '/' + client . id + '.' + type , pack = options . packedAssets , link = pack !== undefined ? ( pack . cdn !== undefined ? pack . cdn [ type ] : void 0 ) : void 0 ; if ( link ) { if ( typeof link === 'function' ) { var file = { id : client . id , name : client . name , extension : type , path : defaultPath } ; return link ( file ) ; } else if ( typeof link === 'string' ) { return link ; } else { throw new Error ( 'CDN ' + type + ' param must be a Function or String' ) ; } } else { return defaultPath ; } }
When packing assets the default path to the CSS or JS file can be overridden either with a string or a function, typically pointing to an resource on a CDN
When packing assets the default path to the CSS or JS file can be overridden either with a string or a function typically pointing to an resource on a CDN