resources.json
Fileresources.json
file lists all resources in a component or library folder. It resides next to each
manifest.json
in the generated results.The file is generated during build time, and its main purpose is for mobile packaging, as resources.json
mentions all files
inside the application.
If an app has a resources.json
file, it is mentioned in the manifest.json
under
sap.app/resources
.
This file is used by SAP Tools like the SAP Fiori Client Packager. It will be generated automatically when using SAP Web IDE.
The list of resources is stored in an array in the resources
property of the
top level JSON object. The top level object can also contain the
_version
property, which can be omitted if the value is
1.0.0
. For each resource, the following entries are possible:
Property |
Type |
Mandatory |
Description |
---|---|---|---|
|
|
![]() |
The relative path of the resource as accessible in a server. The path is relative to the location of the
|
|
|
![]() |
The size in bytes of the resource. |
|
|
A list of conditional dependencies of this resource. These dependencies can be required during execution of this resource. |
|
|
|
When set to |
|
|
|
When set to |
|
|
|
A list of variables which are exposed to the global JS scope. |
|
|
|
Defines the format of this resource; |
|
|
|
List of sub-modules which are included in this resource, e.g. the |
|
|
|
When set to |
|
|
|
Locale of the resource for known i18n resources; the SAPUI5 build
derives the locale from the naming convention ( |
|
|
|
Indicates whether the resource is a merged resource. By default, the SAPUI5 build determines this from naming conventions
( |
|
|
|
The name of the UI5 module, including the file extension. |
|
|
|
The name of the corresponding resource in the raw (developer) language for known i18n resources; for example, for |
|
|
|
A list of dependencies of this resource. These dependencies are required prior to using this resource. |
|
|
|
When set to The SAPUI5 build derives this flag from the naming convention
|
|
|
|
Indicates a theme-dependent resource. The SAPUI5 build determines this from the naming convention
|
{ "resources": [ { "name": ".library", "size": 473 }, { "name": ".theming", "size": 368 }, }, { "name": "Component-preload.js", "module": "application/mine/Component-preload.js", "size": 361, "merged": true, "included": [ "application/mine/Component.js", "application/mine/TodoComponent.js" ], "dynRequired": true, "condRequired": [ "sap/m/MessageBox.js" ], "required": [ "sap/base/Log.js" ] }, { "name": "DynamicSideContent-dbg.js", "module": "application/mine/DynamicSideContent.js", "isDebug":true, "size": 115 }, { "name": "DynamicSideContent.js", "module": "application/mine/DynamicSideContent.js", "size": 78 }, { "name": "DynamicSideContentRenderer-dbg.js", "module": "application/mine/DynamicSideContentRenderer.js", "isDebug":true, "size": 110, "required": [ "sap/ui/core/UIComponent.js" ] }, ... { "name": "library-preload.json", "module": "application/mine/library-preload.json", "merged":true, "size": 294 }, ... { "name": "designtime/library.designtime.js", "module": "application/mine/designtime/library.designtime.js", "size": 84, "designtime": true }, ... { "name": "messagebundle_de.properties", "module": "application/mine/i18n/messagebundle_de.properties", "raw":"messagebundle.properties", "locale":"de", "size": 163, }, ... { "name": "themes/sap_horizon/library.less", "theme":"sap_horizon", "size": 311, "designtime": true } ... { "name": "plugin/LessSupport-dbg.js", "module": "sap/ui/core/plugin/LessSupport.js", "condRequired": [ "sap/ui/core/theming/Parameters.js", "sap/ui/thirdparty/less.js" ], "exposedGlobalNames": ["globalLess"], "dynRequired": true, "format": "raw", "isDebug": true, "size": 18494 } ... { "name": "resources.json", "dynRequired": true, "size": 1000000 } ] }