Bladeren bron

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

daxiongYang 6 jaren geleden
bovenliggende
commit
ea54f2624a
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      index.html

+ 1 - 1
index.html

7
  <title>人人快速开发平台</title>
7
  <title>人人快速开发平台</title>
8
  <% if (process.env.NODE_ENV === 'production') { %>
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
  <% }else { %>
11
  <% }else { %>
12
    <!-- 开发环境 -->
12
    <!-- 开发环境 -->
13
    <link rel="shortcut icon" type="image/x-icon" href="./static/img/favicon.ico">
13
    <link rel="shortcut icon" type="image/x-icon" href="./static/img/favicon.ico">