55 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			HTML
		
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			HTML
		
	
	
| <!--BEGIN-->
 | |
| <!--<% var { env: $env, process: $process, mode: $mode, builtInfo: $builtInfo, links: $links, redirectLogin: $redirectLogin, framework: $framework, scripts: $scripts, element: $element } = htmlWebpackPlugin.options %>-->
 | |
| <!--<% var { appKey: $appKey, antd: $antd, basename: $basename, API_HOST: $API_HOST } = $process %>-->
 | |
| <!--<% var { ['ant-prefix']: $antPrefix, fontFamily: $fontFamily, colorPrimary: $colorPrimary, borderRadius: $borderRadius } = $antd %>-->
 | |
| <!--NED-->
 | |
| <!DOCTYPE html>
 | |
| <html lang="zh">
 | |
| <head data-built-info="<%= $builtInfo %>">
 | |
|   <meta charset="UTF-8"/>
 | |
|   <meta name="renderer" content="webkit"/>
 | |
|   <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
 | |
|   <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,viewport-fit=cover">
 | |
|   <% for (const item of $links) { %>
 | |
|   <link type="text/css" rel="stylesheet" href="<%= item %>"></link>
 | |
|   <% } %>
 | |
|   <title>--</title>
 | |
|   <script>
 | |
|     (function () {
 | |
|       const APP_ENV = {
 | |
|         antd: {
 | |
|           'ant-prefix': '<%= $antPrefix %>',
 | |
|           fontFamily: '<%= $fontFamily %>',
 | |
|           colorPrimary: '<%= $colorPrimary %>',
 | |
|           borderRadius: parseInt('<%= $borderRadius %>')
 | |
|         },
 | |
|         appKey: '<%= $appKey %>',
 | |
|         basename: '<%= $basename %>',
 | |
|         API_HOST: '<%= $API_HOST %>'
 | |
|       };
 | |
|       APP_ENV.API_HOST = sessionStorage.API_HOST || APP_ENV.API_HOST || window.location.origin;
 | |
|       window.process = {
 | |
|         env: { app: APP_ENV },
 | |
|         NODE_ENV: '<%= $mode %>'
 | |
|       };
 | |
|       window.__JJB_ENVIRONMENT__ = {
 | |
|         API_HOST: APP_ENV.API_HOST,
 | |
|         redirect: '<%= $redirectLogin %>',
 | |
|         FRAMEWORK: APP_ENV.antd
 | |
|       };
 | |
|     })();
 | |
|   </script>
 | |
|   <!--  SCRIPTS  -->
 | |
|   <% for (const item of $scripts) { %>
 | |
|   <script src="<%= item %>" type="text/javascript"></script>
 | |
|   <% } %>
 | |
| </head>
 | |
| <body style="overflow: hidden">
 | |
|   <!-- NOSCRIPT -->
 | |
|   <noscript>此网页需要开启JavaScript功能。</noscript>
 | |
|   <!-- MAIN -->
 | |
|   <% const { root } = $element; %>
 | |
|   <div id="<%= root.id %>" style="width: 100%; height: 100%; position: relative"></div>
 | |
| </body>
 | |
| </html>
 |