I'm playing with the UI5 minifying and uglifying. As far as I know, there are two common approaches:
Grunt task with
gruntfile.cjs
, based ongrunt-openui5
.UI5 Tooling with
ui5.yaml
, based on@ui5/cli
.
My ui5.yaml
:
specVersion: "2.5"
type: application
metadata:
name: com.myapp
framework:
name: OpenUI5
version: 1.95.0
resources:
configuration:
paths:
webapp: src/webapp
builder:
cachebuster:
signatureType: hash
componentPreload:
namespaces:
- "com/myapp"
paths:
- "src/webapp"
To run the minifying with @ui5/cli
, I execute the following NPM-Script task: "test": "ui5 build preload"
, as the result, I get a brand new dist
folder with minified and debug-friendly files (e.g. App.controller.js
and App-dbg.controller.js
), in addition, Component-preload.js
is generated as well.
My questions:
Is Grunt-based approach a legacy, while
@ui5/cli
is standard approach nowadays?Is it possible to get a minified version of the UI5 app (just a
Component-preload.js
) with@ui5/cli
without adist
folder?