入口文件模板

在 Egret 5.2.x 项目根目录下,有个 template 文件夹,里面有个2个目录

web

如果您项目的配置文件 egretProperties.json 里有 template 字段,那么发布 Html5 项目时,就会使用 template/web/index.html 来作为入口文件。 例如:

{
"engineVersion": "5.2.9",
"compilerVersion": "5.2.9",
"template": {}, //该字段只要存在,/就会使用 template/web/index.html 来作为入口文件。
...
}

runtime

发布原生项目的配置文件

版本变动

5.0.8:版本升级脚本会删除template/debug文件夹,5.0.8以上版本引擎将不使用template/debug/index.html作为模板,开发者直接修改项目下 index.html 文件即可。

5.0.1template/debug 为调试使用, template/web 为发布使用