<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport"
    content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
  <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
  <title></title>
  <script src="https://api.map.baidu.com/getscript?type=webgl&v=1.0&ak=59cPajA8jyyDtFjTgDfBMRNRsdmcsKeL"></script>
  <script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=HJEBZ-U5BLP-SRWDB-LBKOS-PCIQH-F4FLG"></script>
  <script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
  <style>
    body {
      height: 100%;
      overflow-y: hidden;
    }
  </style>
</head>

<body>
  <noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
      properly without JavaScript enabled. Please enable it to
      continue.</strong>
  </noscript>
  <div id="app"></div>
  <!-- built files will be auto injected -->
</body>
<script>
  (function () {
    function autoRootFontSize() {
      document.documentElement.style.fontSize =
        (Math.min(
            screen.width,
            document.documentElement.getBoundingClientRect().width
          ) /
          750) *
        32 +
        "px";
      // 取screen.width和document.documentElement.getBoundingClientRect().width的最小值；
      // 除以750，乘以32；意思就是相对于750大小的32px;
      // 即如果屏幕大小变成了375px,那么字体就是16px;也就是根字体fontSize大小和屏幕大小成正比变化！
    }
    window.addEventListener("resize", autoRootFontSize);
    autoRootFontSize();
  })();
</script>

</html>