Provide and document options to reduce content of build result
See original GitHub issueExpected 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:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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:Hi @RandomByte,
was the Documentation improved already in this direction?
CU Gregor