Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INTERNAL] Configuration: Builder excludes for type module #857

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions docs/pages/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,14 +379,26 @@ You can choose which theme library to use by the application that is consuming t
- "/test-resources/**"
- "!/test-resources/some/project/name/demo-app/**"
- "**/*.svg"
```

=== "module"
!!! info
For projects of type `module`, this configuration is available since UI5 CLI [`v3.5.0`](https://github.com/SAP/ui5-cli/releases/tag/v3.5.0)
and applies only to projects defining [Specification Version](#specification-versions) 3.1 or higher.
```yaml
builder:
resources:
excludes:
# For modules, all paths must be absolute, except for wildcards
- "/resources/my/library/module-xy/min/**"
- "!/resources/my/library/module-xy/min/module-xy-bundle.js"
- "**/*.svg"
```

You can exclude a projects resources from the build process using a list of glob patterns. Matching resources will be ignored by the builder and all build tasks.

Patterns are applied to the **virtual resource paths** (i.e. the UI5 runtime paths). Exclude patterns are always applied after any includes.

Resource excludes are currently not supported for projects of type `module`.

### Cachebuster

!!! example
Expand Down