index.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <title>
  7. <%= htmlWebpackPlugin.options.title %>
  8. </title>
  9. <script>
  10. document.addEventListener('DOMContentLoaded', function() {
  11. document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
  12. })
  13. var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
  14. document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')
  15. var _hmt = _hmt || [];
  16. (function() {
  17. var hm = document.createElement("script");
  18. hm.src = "https://hm.baidu.com/hm.js?241f12e9b149beeea7565c8bfd509eeb";
  19. var s = document.getElementsByTagName("script")[0];
  20. s.parentNode.insertBefore(hm, s);
  21. })();
  22. </script>
  23. <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
  24. </head>
  25. <body>
  26. <noscript>
  27. <strong>Please enable JavaScript to continue.</strong>
  28. </noscript>
  29. <div id="app"></div>
  30. <!-- built files will be auto injected -->
  31. </body>
  32. </html>