我正在玩 UI5 缩小和丑化。据我所知,有两种常见的方法:
Grunt 任务
gruntfile.cjs,基于grunt-openui5.UI5 工具
ui5.yaml,基于@ui5/cli.
我的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"
要使用 运行缩小@ui5/cli,我执行以下 NPM 脚本任务:"test": "ui5 build preload"结果,我得到一个全新的dist文件夹,其中包含缩小和调试友好的文件(例如App.controller.js和App-dbg.controller.js),此外,Component-preload.js也生成了。
我的问题:
基于 Grunt 的方法是一种遗产,而
@ui5/cli现在是标准方法吗?是否可以在没有文件夹的情况下获得 UI5 应用程序的缩小版本(只是一个
Component-preload.js)?@ui5/clidist