cancel
Showing results for 
Search instead for 
Did you mean: 

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

RajkumarAmbhu
Discoverer
0 Kudos

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

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

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

App2

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

Accepted Solutions (0)

Answers (0)