[add] init
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<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">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||
<script type="text/javascript" src="<%= BASE_URL %>v1/plugins.js"></script>
|
||||
<script type="text/javascript" src="<%= BASE_URL %>v1/plugins-ui.js"></script>
|
||||
<link rel="stylesheet" href="<%= BASE_URL %>v1/plugins.css">
|
||||
<!-- 全局配置 -->
|
||||
<!--开发环境-->
|
||||
<% if (process.env.NODE_ENV === 'development' ) { %>
|
||||
<script src="<%= BASE_URL %>dev_api_config.js"></script>
|
||||
<% } %>
|
||||
<!--生产环境-->
|
||||
<% if (process.env.NODE_ENV === 'production' ) { %>
|
||||
<script src="<%= BASE_URL %>prod_api_config.js"></script>
|
||||
<% } %>
|
||||
<!--测试环境-->
|
||||
<% if (process.env.NODE_ENV === 'test' ) { %>
|
||||
<script src="<%= BASE_URL %>test_api_config.js"></script>
|
||||
<% } %>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
|
||||
Please enable it to continue.</strong>
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
<!-- built files will be auto injected -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user