perf: BUILD_DATE --> BUILD_TIME
This commit is contained in:
parent
cd764b84a3
commit
7d3a955389
@ -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" />
|
||||
|
@ -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 + 生产环境才弹出
|
||||
|
Loading…
x
Reference in New Issue
Block a user