Browse Source

排除当dns为空时候的bug

main
pixel 3 years ago
parent
commit
4551ab3cc8
  1. 2
      web/public/index.html

2
web/public/index.html

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%=htmlWebpackPlugin.options.title%></title> <title><%=htmlWebpackPlugin.options.title%></title>
<% if(process.env.NODE_ENV!=='development'){ %>
<% if(process.env.NODE_ENV!=='development' && htmlWebpackPlugin.options.cdns){ %>
<% htmlWebpackPlugin.options.cdns.forEach(function(item){ if(item.js){ %> <% htmlWebpackPlugin.options.cdns.forEach(function(item){ if(item.js){ %>
<script type="text/javascript" src="<%= item.js %>"></script> <script type="text/javascript" src="<%= item.js %>"></script>
<% } }) %> <% } }) %>

Loading…
Cancel
Save