跳转到内容

resolveAssetGroup

此内容尚不支持你的语言。

resolveAssetGroup(projectRelPath, config): ResolvedAssetGroup

Defined in: asset/assetGroups.ts:92

The delivery group an asset belongs to, in priority order:

  1. An explicit config.groups entry whose folder is (the longest) prefix of the asset’s path — the modern, name-decoupled configuration.
  2. The legacy folder-name convention (subpackages/<name>/ → lazy, remote/<name>/ → remote) — kept as a zero-config default / back-compat.
  3. main / local — the eagerly-shipped default.

Pure: config is the parsed document (or null when the project has none). The SINGLE resolver the cook and the editor Play realm both call.

string

AssetGroupsConfig | null | undefined

ResolvedAssetGroup