perf: BUILD_DATE --> BUILD_TIME

This commit is contained in:
菲鸽 2024-06-16 22:05:31 +08:00
parent cd764b84a3
commit 7d3a955389
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<!doctype html>
<html build-date="%BUILD_DATE%">
<html build-date="%BUILD_TIME%">
<head>
<meta charset="UTF-8" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

View File

@ -91,7 +91,7 @@ export default ({ command, mode }) => {
UNI_PLATFORM === 'h5' && {
name: 'html-transform',
transformIndexHtml(html) {
return html.replace('%BUILD_DATE%', dayjs().format('YYYY-MM-DD HH:mm:ss'))
return html.replace('%BUILD_TIME%', dayjs().format('YYYY-MM-DD HH:mm:ss'))
},
},
// 打包分析插件h5 + 生产环境才弹出