Files
Flash5/flash-extensions/flash-web-bundler/docs/asset-sources.md
T
2026-04-17 08:18:11 +02:00

23 lines
542 B
Markdown

# Asset Sources
`flash-web-bundler` uses explicit source objects for production assets.
Supported sources:
- `FilesystemAssetsSource.of(Path)`
- `ClasspathAssetsSource.of(String rootPrefix)`
Builder shortcuts:
- `.assetsFromFilesystem(Path.of("dist"))`
- `.assetsFromClasspath("web/dist")`
Classpath source requires `asset-manifest.json` generated at build time.
The developer does not maintain this file manually.
Production startup is fail-fast if:
- manifest is missing
- manifest is invalid
- manifest points to missing resources