wewechat++ init
仓库提交至星火社区作品集 Signed-off-by: Riceneeder <86492950+Riceneeder@users.noreply.github.com>
This commit is contained in:
22
src/index.html
Normal file
22
src/index.html
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
<!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>
|
||||
Reference in New Issue
Block a user