mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-14 22:53:47 +08:00
smart-admin-h5
This commit is contained in:
47
smart-admin-h5/public/index.html
Normal file
47
smart-admin-h5/public/index.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
env="<%= VUE_APP_ENV %>"
|
||||
version="<%= require('../package.json').version %>"
|
||||
updated="<%= require('moment')().format('YYYY-MM-DD HH:mm:ss') %>"
|
||||
>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
|
||||
<!--- cdn begin --->
|
||||
<% if (process.env.NODE_ENV === 'production') { %>
|
||||
<% for(var css of htmlWebpackPlugin.options.cdn.css) { %>
|
||||
<link href="<%=css%>" rel="preload" as="style" />
|
||||
<link rel="stylesheet" href="<%=css%>" as="style" />
|
||||
<% } %> <% for(var js of htmlWebpackPlugin.options.cdn.js) { %>
|
||||
<link href="<%=js%>" rel="preload" as="script" />
|
||||
<script src="<%=js%>"></script>
|
||||
<% } %> <% } %>
|
||||
<!--- cdn end --->
|
||||
|
||||
<!--- vconsole begin --->
|
||||
<% if (process.env.NODE_ENV === 'development') { %>
|
||||
<script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
|
||||
<% } %>
|
||||
<!--- vconsole end --->
|
||||
|
||||
<script type="text/javascript" src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
|
||||
|
||||
|
||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||
</head>
|
||||
<body>
|
||||
<!--- 无脚本提示 --->
|
||||
<noscript>
|
||||
<strong>
|
||||
很抱歉,<%= htmlWebpackPlugin.options.title %> 在没有启用JavaScript的情况下无法正常工作,请联系技术人员,稍后重试!
|
||||
</strong>
|
||||
</noscript>
|
||||
|
||||
<div id="app"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user