Hi guys,
I'm thinking about using openui5 to develop a hybrid mobile application.
But before doing that, there's some doubts and unclearity in my mind:
As you know, we can download UI5 runtime mobile library from openui5 project website, its size is >4 megabytes
here's the brief folder structure of the library:
resources
|-->jquery.sap.xxx.js
|-->jquery.sap.xxx-dbg.js
|-->......
|-->sap
|-->m
|-->ActionListItem.js
|-->ActionListItem-dbg.js
|-->......
|-->ui
|-->......
When I start development, I'll have some view, controller js files.
I'm not sure how to browserify all needed modules into one bundle.js file.
What is the module pattern openui5, is it commonjs or AMD or neither?
I think it's a common requirement to concat all module files into one js file to reduce request times and save bandwidth. But even for that I'm not sure whether it's possible.I have done some ui5 development tests myself. The way ui5 requires module is to form a file path based on the module name.
e.g. It will load a xxx.view by looking into the path /someproject/view/xxx.view.js and if some resources if not found, it will again go into ui5 resources folder.
My goal is to use openui5 to develop hybrid mobile application and I don't want to wrap all the 4M ui5 library into the final application build. Because that's a lot of unnecessary modules there. How to concat all the modules I need into one file and keep all things running correctly?
Regards,
Aaron.