diff --git a/index.html b/index.html index da6d915..53ebc78 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + diff --git a/vite.config.ts b/vite.config.ts index e6a07de..1059b13 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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 + 生产环境才弹出