SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.92k stars 1.23k forks source link

How to build SAPUI5 application that should only have "component-preload.js" ? #3998

Closed SatishNaani closed 4 months ago

SatishNaani commented 4 months ago

OpenUI5/SAPUI5 version: 1.120.9

Browser/version (+device/version): Chrome (Latest)

We need to build the SAPUI5/OpenUI5 test application with only the "component-preload.js" file included. Within the 'dist' folder, there shouldn't be any "TS/JS/DBG" files, as illustrated below. Is there a specific command or task available to accomplish this?

image

When utilizing the "Exclude-task=createDebugFiles" , debug files are successfully eliminated, but TypeScript (TS) and JavaScript (JS) files still appear in the dist directory. image

flovogt commented 4 months ago

Currently, this not supported by UI5 Tooling. However there is a community custom task available doing this job for you https://www.npmjs.com/package/ui5-task-no-debug-files

SatishNaani commented 2 months ago

Thank you flovogt, it helped me,