docs: function packPageStyleScript(file, context, options, isScript) {
      var packOpt = options[isScript ? 'packJs' : 'packCss'];
      if (_.isFunction(packOpt)) {
          packOpt = packOpt(file.id);
      }
      if (!packOpt) {
          return;
      }
  
      var handler = isScript ? 'parsePackScript' : 'parsePackStyle';
      var results = htmlParser[handler](file, context, options);
      //如果外链的js/css1个，也进行进行合并
      if (results.length < 1) {
          return;
      }
  
      var replacers = [];
      var toCombines = results.map(function (item, index) {
          replacers[index] = item;
          return item.file;
      });
      var target = packOpt.target;
      var defaultPkgFile = file.subpathNoExt + '_aio.' + (isScript ? 'js' : 'css');
      if (_.isFunction(target)) {
          target = target(defaultPkgFile, file);
      }
      target || (target = defaultPkgFile);
  
      return createPackItem({
          target: target,
          packId: packOpt.packId,
          files: packOpt.files,
          load: true,
          loadOrder: packOpt.loadOrder,
          host: file,
          packDeps:packOpt.packDeps,
          rawCombines: toCombines,
          replacers: replacers
      }, context);
  }