Browse Source

调整生产环境加载配置文件,保证每次刷新不被缓存

daxiongYang 6 years ago
parent
commit
ea54f2624a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      index.html

+ 1 - 1
index.html

@ -7,7 +7,7 @@
7 7
  <title>人人快速开发平台</title>
8 8
  <% if (process.env.NODE_ENV === 'production') { %>
9 9
    <!-- 生产环境 -->
10
    <script src="./config/index.js?h=<%=compilation.hash%>"></script>
10
    <script>document.write('<script src="./config/index.js?t=' + new Date().getTime() + '"><\/script>');</script>
11 11
  <% }else { %>
12 12
    <!-- 开发环境 -->
13 13
    <link rel="shortcut icon" type="image/x-icon" href="./static/img/favicon.ico">