index.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!--template.html-->
  2. <!DOCTYPE html>
  3. <html lang="zh-CN">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
  8. <link rel="icon" href="static/favicon.ico">
  9. <title>
  10. <%= htmlWebpackPlugin.options.title %>
  11. </title>
  12. <script>
  13. document.addEventListener('DOMContentLoaded', function() {
  14. document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
  15. })
  16. var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
  17. 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' : '') + '" />')
  18. </script>
  19. <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
  20. <!-- Bytedance Tracking -->
  21. <script>
  22. (function(r,d,s){r._tt_config=true;var _baq=(r._baq=r._baq||[]);_baq.methods=["track","off","on"];
  23. _baq.factory=function(method){return function(){var args=Array.prototype.slice.call(arguments);
  24. args.unshift(method);_baq.push(args);return _baq}};for(var i=0;i<_baq.methods.length;i++){
  25. var key=_baq.methods[i];_baq[key]=_baq.factory(key)}_baq.load=function(){
  26. var js,fjs=d.getElementsByTagName(s)[0];js=d.createElement(s);
  27. js.src="https://analytics.oceanengine.com/api/v2/js/sdk";fjs.parentNode.insertBefore(js,fjs)};
  28. _baq.load();if(_baq.invoked){return}_baq.invoked=true;_baq.track("pageview")})(window,document,"script");
  29. </script>
  30. <!-- End Bytedance Tracking -->
  31. </head>
  32. <body>
  33. <noscript>
  34. <strong>Please enable JavaScript to continue.</strong>
  35. </noscript>
  36. <div id="app"></div>
  37. <!-- built files will be auto injected -->
  38. </body>
  39. </html>