I've recently created a SAPUI5 Library which contains a lot of custom controls to re-use, but I can't find a way to make applications which include the library, to load the .less
theme files which are defining the custom controls styles.
So basically, what I would want to do is make the library embed custom control style to others applications.
Here is the manifest.json
:
{
"_version": "1.7.0",
"sap.app": {
"id": "zproject",
"type": "library",
"embeds": [],
"i18n": "messagebundle.properties",
"applicationVersion": {
"version": "1.0.0"
},
"title": "{{title}}",
"description": "{{description}}",
"ach": "",
"resources": "resources.json",
"offline": false
},
"sap.ui": {
"technology": "UI5",
"deviceTypes": {
"desktop": true,
"tablet": true,
"phone": false
},
"supportedThemes": [
"sap_hcb",
"sap_belize",
"sap_belize_plus"
]
},
"sap.ui5": {
"dependencies": {
"minUI5Version": "1.30.0",
"libs": {
"sap.ui.core": {
"minUI5Version": "1.30.0"
}
}
},
"contentDensities": {
"compact": true,
"cozy": false
}
},
"sap.platform.hcp": {
"uri": ""
},
"sap.fiori": {
"registrationIds": [],
"archeType": "reusecomponent"
}
Here is my folder structure:
I can give you any more informations you could need, but I thought these are the most usefull