OpenUI5 Webpack
This repository contains some projects to build OpenUI5/SAPUI5 applications with webpack.
Projects
openui5-webpack-plugin
This is the main plugin for webpack to build UI5 applications. It enables webpack to understand the UI5 module system.
openui5-render-loader
By default UI5 controls don't have a dependency to their renderer. This loader scans UI5 controls and adds a dependency to the control, so that the renderer is included in the build.
openui5-xml-loader
This loader parses XML views and adds all controls used in XML views as dependency.
openui5-manifest-loader
The manifest loader preprocesses a manifest.json
file and adds dependencies for the libraries and modules specified in it.
Install
Please check the README.md
files of the sub packages to find out more about how to install and configure the
different plugins/loaders.
Usage
Depending on your project setup you will need a different combination of plugin and loaders.
-
openui5-webpack-plugin
is always needed -
openui5-renderer-loader
is always needed -
openui5-xml-loader
is only needed if you use XML Views in your application -
openui5-manifest-loader
is only needed if you have a component and a separatemanifest.json
file
Check out the modified openui5-sample-app
for a working example.