Skip to content

Commit 4c3be93

Browse files
committed
fix: 修改模板文件的名称并添加注释说明作用
1 parent 5e161c9 commit 4c3be93

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
}
7979
},
8080
"h5": {
81-
"template": "index.html",
81+
"template": "template.html",
8282
"router": {
8383
"mode": "history",
8484
"base": "/h5/"

index.html renamed to template.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
2222
})
2323
</script>
24-
<link rel="stylesheet" href="<%= BASE_URL %>static/index.css" />
24+
<link rel="stylesheet" href="<%= htmlWebpackPlugin.options.baseUrl %>static/index.css" />
2525
</head>
2626
<body>
27+
<!-- 该文件为 H5 平台的模板 HTML,并非应用入口,请勿直接运行此文件。 -->
28+
<!-- 详见文档:https://uniapp.dcloud.io/collocation/manifest?id=h5-template -->
2729
<noscript>
2830
<strong>Please enable JavaScript to continue.</strong>
2931
</noscript>

0 commit comments

Comments
 (0)