FIX 热更新config.js被缓存

This commit is contained in:
sc 2021-07-19 12:39:44 +08:00
parent 9f3f6ff0e5
commit dc5c2c9f59
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@
<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 src="config.js?v=<%= new Date().getTime() %>"></script>
<script type="text/javascript">
document.write("<script src='config.js?"+new Date().getTime()+"'><\/script>");
</script>
</head>
<body>
<noscript>