wewechat-plus-plus/src/index.html
Riceneeder 58ce6cb67b wewechat++ init
仓库提交至星火社区作品集

Signed-off-by: Riceneeder <86492950+Riceneeder@users.noreply.github.com>
2022-09-01 20:38:13 +08:00

23 lines
467 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>weweChat</title>
</head>
<body>
<div id="root"></div>
<script>
if (process.env.HOT) {
let script = document.createElement('script');
let port = process.env.PORT || 3000;
script.async = '';
script.src = `http://localhost:${port}/dist/bundle.js`;
document.body.appendChild(script);
}
</script>
</body>
</html>