Closed hauseyo closed 1 year ago
Are you referring to a specific bundle or all the files in the build result?
If you remove the -a flag from your command and after clearing the dist directory, does the result match better with your expectation?
Are you referring to a specific bundle or all the files in the build result?
If you remove the -a flag from your command and after clearing the dist directory, does the result match better with your expectation?
Hi, Without --a flag there is no resources folder and jQuery files, which is expectable. But let me be more specific: --a flag is needed because in the project we use 3rd party library, which should be in the final build result. Without it, it will not be included, so we have to use --a flag or find any other way to solve the mentioned issue.
I see. In that case, try using the --include-dependency yourlib
parameter instead: https://sap.github.io/ui5-tooling/v3/pages/CLI/
I see. In that case, try using the
--include-dependency yourlib
parameter instead: https://sap.github.io/ui5-tooling/v3/pages/CLI/
Yes, I tried that one: ui5 build preload --include-dependency @sapit/sapui5-lib --clean-dest --config ui5-deploy.yaml
But it seems, it can't find the dependency, even though it explicitly defined in the package.json
You need to specify the name as defined in the library's ui5.yaml
(metadata.name)
Check the output of ui5 ls
You need to specify the name as defined in the library's
ui5.yaml
(metadata.name)Check the output of
ui5 ls
Thank you for the hint! It worked. I propose you to somehow document it or add some examples in the documentation.
Hi, I upgraded ui5 tooling from v2 to v3 and the issue is that sap libraries are included in the final bundle, which is bad in my case because it becomes too heavy. It leads to failed deployment to CF space due to the size of the bundle.
Expected Behavior
Not having sap libraries in bundle
Current Behavior
Having sap libraries in bundle
Steps to Reproduce the Issue
Context
ui5 --version
when using the CLI):3.3.0
unknown
18.15.0
macOS
unknown
nothing
Log Output / Stack Trace