890 B
890 B
Configuration
WebBundlerConfig is immutable and built with WebBundlerConfig.builder().
Key fields:
runtimeMode:PROD,ENV,AUTODETECToperationMode:ORCHESTRATE_ONLY,MANAGEDfrontendType: currentlyVITEpackageManager:NPM,PNPM,YARN,BUNinstallPolicy:AUTO_IF_LOCK_HASH_CHANGED,NEVERloggingMode:MERGED,SEPARATE,QUIET,VERBOSEcommandSafetyMode:WARN,BLOCK,ALLOWwebRoot,assetsSource,basePath,devHost,devPort,watchList
Asset source is explicit and object-based:
assetsFromFilesystem(Path.of("dist"))assetsFromClasspath("web/dist")
Or by direct source object:
assetsSource(FilesystemAssetsSource.of(Path.of("dist")))assetsSource(ClasspathAssetsSource.of("web/dist"))
Validation is fail-fast:
- invalid
devPort - blank/invalid watch entries
- invalid
basePath