zhengkaixin 1 year ago
parent
commit
5c44be3861
2 changed files with 33 additions and 1 deletions
  1. 2 1
      manifest.json
  2. 31 0
      static/index.html

+ 2 - 1
manifest.json

@@ -89,6 +89,7 @@
                     "key" : "373BZ-UGXED-WAG4L-P2E2W-FT4UO-ZNBUQ"
                 }
             }
-        }
+        },
+        "template" : "static/index.html"
     }
 }

+ 31 - 0
static/index.html

@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+    <head>
+        <meta charset="utf-8">
+        <meta http-equiv="X-UA-Compatible" content="IE=edge">
+        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
+        <title>
+            <%= htmlWebpackPlugin.options.title %>
+        </title>
+        <script>
+          
+            // 以下为百度统计代码
+            var _hmt = _hmt || [];
+            (function() {
+                var hm = document.createElement("script");
+               // hm.src = "https://hm.baidu.com/hm.js?********************";
+				hm.src = "https://hm.baidu.com/hm.js?4e14aefd07c9a124946592c42ff77595";
+                var s = document.getElementsByTagName("script")[0]; 
+                s.parentNode.insertBefore(hm, s);
+            })();
+        </script>
+        <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
+    </head>
+    <body>
+        <noscript>
+            <strong>Please enable JavaScript to continue.</strong>
+        </noscript>
+        <div id="app"></div>
+        <!-- built files will be auto injected -->
+    </body>
+</html>