description: Use this skill when configuring web application metadata structure, webapplication.json, or bundle organization. Covers WebApplication bundle layout, meta XML, build output directory, and webapplication.json settings.
---
# WebApplication Requirements
## Bundle Rules
- A WebApplication bundle must live under `webapplications/<AppName>/`
- The bundle must contain `<AppName>.webapplication-meta.xml`
- The metadata filename must exactly match the folder name
- A build output directory must exist and contain at least one file
- Default build output directory: `dist/`
- If `webapplication.json.outputDir` is set, it overrides `dist/`
Valid example:
```text
webapplications/
MyApp/
MyApp.webapplication-meta.xml
webapplication.json
dist/
index.html
```
## Metadata XML
Required fields:
-`masterLabel`
-`version` (max 20 chars)
-`isActive` (boolean)
Optional fields:
-`description` (max 255 chars)
## webapplication.json
`webapplication.json` is optional.
Allowed top-level keys only:
-`outputDir`
-`routing`
-`headers`
### File Constraints
- Must be valid UTF-8 JSON
- Max size: 100 KB
- Root must be a non-empty object
- Never allow `{}`, arrays, or primitives as the root