Resources
resources 定义应用使用的资源信息。
结构
结构定义如下:
yaml
resources []
├─ key (string) [Mandatory]
├─ path (string) [Mandatory]
└─ render (string) [Optional]示例
简单配置示例:
yaml
resources:
- key: main
path: src/index
render: native属性
属性定义如下:
| 属性 | 必填 | 描述 |
|---|---|---|
key | Y | 资源的唯一标识,其他模块可以引用该资源,在同一个 manifest 文件中必须唯一 |
path | Y | 从应用程序根目录到包含您的静态资源的目录的相对路径,该目录必须包含一个 index.html 入口点。 |
render | 定义当前资源使用 Native UI,取值为: native |