question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide and document options to reduce content of build result

See original GitHub issue

Expected Behavior

When executing a build, a lot of files are written to the dist folder that might not be required at runtime, such as:

  • All locale/language-specific files (CLDR, messagebundle_*.properties)
  • All themes (incl. RTL-variants)
  • Individual JS files that are part of a bundle (e.g. sap-ui-custom.js / library-preload.js / Component-preload.js)

This is relevant when packaging the app e.g. with Cordova, as the application bundle can become quite large. It also speeds up deployment e.g. when uploading the files to a server.

It would be helpful if a project could declare/define which locales/languages/themes should be supported. By default all variants should be used.

Current Behavior

It is currently only possible to exclude -dbg.js files

  • via API excludedTasks: ["createDebugFiles"]
  • or via CLI option --exclude-task=createDebugFiles

Context

  • UI5 Module Version (output of ui5 --version when using the CLI): 0.2.6

Affected components (if known)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
matz3commented, Apr 3, 2019

@jrondorf my example was related to the API. When using the CLI this needs to be passed as option on the command line (--exclude-task=createDebugFiles), e.g:

ui5 build self-contained --all --exclude-task=createDebugFiles
0reactions
gregorwolfcommented, Oct 27, 2021

Hi @RandomByte,

was the Documentation improved already in this direction?

CU Gregor

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipeline: Basic Steps - Jenkins
This step is most useful when used in Declarative Pipeline or with the options to set the stage result or ignore build interruptions....
Read more >
Customize your pipeline - Azure Pipelines - Microsoft Learn
Navigate to the editor for your pipeline by selecting Edit pipeline action on the build, or by selecting Edit from the pipeline's main...
Read more >
Optimize Options (Using the GNU Compiler Collection (GCC))
Without any optimization option, the compiler's goal is to reduce the cost of compilation and to make debugging produce the expected results.
Read more >
How to create effective document templates | Zapier
Let's dive in and cover how you can build templates for some common file types, like text documents, presentations, project checklists, and emails....
Read more >
Optimizing PDFs in Adobe Acrobat Pro
PDF Optimizer provides many settings for reducing the size of PDF files. Some of the PDF Optimizer settings are comparable to the settings...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found