Skip to Content
0
Dec 21, 2021 at 08:00 AM

How to generate preload files of multiple components and library using UI5 Tooling

271 Views

Hello Everyone,

Currently, I have requirements to generate the component-preload.js for multiple components and library-preload.js. But component-preload.js files are generated under the resources folder(virtual) of the dist folder without any code when I run the build process using the ui5 build command.

The folder structure is

image.png

The configuration for component preload generation in ui5.yaml file is

specVersion: '2.6'

metadata:

name: demoui5tooling

type: application

framework:

name: SAPUI5

version: "1.97.0"

libraries:

- name: sap.f

- name: sap.m

- name: sap.tnt

- name: sap.ui.commons

- name: sap.ui.core

- name: sap.ui.layout

- name: sap.ui.table

- name: sap.uxap

- name: themelib_sap_belize

- name: themelib_sap_fiori_3

builder:

componentPreload:

namespaces:

- "demo/pivox/ui5tooling/apps/app1"

- "demo/pivox/ui5tooling/apps/app2"

paths:

- "demo/pivox/ui5tooling/apps/app1/Component.js"

- "demo/pivox/ui5tooling/apps/app2/Component.js"

After the build process, Component preload files are generated in the resources folder of the dist folder

image.png

But in the generated component preload.js file, the corresponding views and controllers related information are not updated.
App1:

image.png

App2

image.png

And also library-preload.js are not generated if I mentioned the library.js in the project.

Could you kindly check and help me regarding this, please ?

Thanks and Best Regards,

Rajkumar Ambhu

Attachments

image.png (11.5 kB)
image.png (15.5 kB)
image.png (5.1 kB)
image.png (9.3 kB)
image.png (6.5 kB)