code: function (data) {
      var styles = '';
      var html = data.html;
  
      html = html.replace(/<style([^>]*)>([\s\S]*?)<\/style>/g, function (matched, attr, content) {
          // 如果是 <style mip-officialrelease> 则不处理
          if (String(attr).indexOf('mip-officialrelease') > -1) {
              return matched;
          }
          styles += content;
          return '';
      });
  
      // 追加源数据
      if (data.source) {
          styles = data.source + styles;
      }
  
      // 压缩代码
      if (data.cssmin) {
          styles = new CleanCSS().minify(styles).styles;
      }
  
      if (!styles) {
          return html;
      }
  
      styles = '<style mip-custom>' + styles + '</style>';
  
      if (/<noscript>([\s\S]+?)<\/noscript>([\s\S]*?)<\/head>/.test(html)) {
          html = html.replace('<noscript>', styles + '<noscript>');
      }
      else {
          html = html.replace('</head>', styles + '</head>');
      }
  
      return html;
  }
docs: 处理样式标签合并
  
  @param {Object} data 配置参数
  @param {string|undefined} data.source 头部追加的样式代码
  @param {boolean} data.cssmin 是否压缩样式
  @return {string}