使用 Vite 新特性将入口 html 页面里的 title 用环境变量替换

This commit is contained in:
Hooray 2023-03-25 11:56:19 +08:00
parent 8d43865e84
commit a83a8213e1

View File

@ -6,7 +6,7 @@
<link rel="stylesheet" href="/loading.css" />
<link rel="stylesheet" href="/browser_upgrade/index.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>载入中…</title>
<title>%VITE_APP_TITLE%</title>
</head>
<body>
<div id="app">