resources
您可以使用静态资源(如HTML、CSS、JavaScript和图像)自定义用户界面。
属性
名称 | 类型 | 是否必填 | 说明 |
---|---|---|---|
key | String | Yes | 模块的key, 其他模块可以引用它。 在manifest文件必须唯一。 key的命名规则: ^[a-zA-Z0-9_-]+$ |
path | String | Yes | 从应用的顶级目录到包含应用正在使用的资源的目录的相对路径。 |
Manifest example
resources:
- key: my-resource-1
path: relative/path/to/resource/one/directory
- key: my-resource-2
path: relative/path/to/resource/two/directory