code: function injectAutoLoad(file, include) {
          var depList = getDepList(file);
          var asyncList = getAsyncList(file);
          var jsList = [];
          var cssList = [];
          //将include资源添加入异步资源
          asyncList = asyncList.concat(include);
          asyncList = asyncList.filter(function (async, index) {
              //去除重复资源
              if (asyncList.indexOf(async) !== index) {
                  return false;
              }
              //将样式表资源强制设定为同步加载，避免异步加载样式表
              if (async.isCssLike) {
                  depList.push(async);
                  return false;
              }
              return true;
          });
          //生成同步资源引用列表
          var usedPkg = {};
          var usedSync = {};
          depList.forEach(function (dep) {
              var res = ret.map.res[dep.getId()];
              res.id = dep.getId();
              usedSync[dep.getId()] = true;
              if (res.pkg && ret.map.pkg[res.pkg]) {
                  if (usedPkg[res.pkg]) {
                      return true;
                  }
                  ret.map.pkg[res.pkg].has.forEach(function (has) {
                      usedSync[has] = true;
                  });
                  usedPkg[res.pkg] = true;
                  res = ret.map.pkg[res.pkg];
              }
              if (dep.isJsLike)
                  jsList.push(res);
              else if (dep.isCssLike)
                  cssList.push(res);
          });
          asyncList = asyncList.filter(function (async) {
              return !usedSync[async.getId()];
          });
          var content = file.getContent();
          content = injectCss(cssList, content);
          if (settings.useSiteMap) {
              content = injectSiteAsync(content);
          }
          else {
              content = injectAsync(asyncList, content, usedSync, file.subpath);
          }
          content = injectJs(jsList, content);
          file.setContent(content);
      }
docs: 对类HTML文件进行资源加载注入
  @param file
  @param include