SAP Fiori Client Guide

Concatenating JavaScript Resources

Use the browserify option when building your project to simplify JavaScript resources.

This build option will compile plugin JavaScript code at build time using browserify instead of runtime. Browserify is an open-source JavaScript tool that allows developers to write and compile JavaScript modules for use in a browser. This can reduce the time taken to load Cordova plugins when the application is launched.

To browserify your project code when building your project, add --browserify to the build command.

 cordova build ios --browserify
 cordova build android --browserify