Options
All
  • Public
  • Public/Protected
  • All
Menu

Options object for describing behavior of a cache group selecting modules that should be cached together.

Hierarchy

  • OptimizationSplitChunksCacheGroup

Index

Properties

automaticNameDelimiter?: string

Sets the name delimiter for created chunks.

chunks?: RegExp | "all" | "async" | "initial" | ((chunk: Chunk) => boolean)

Select chunks for determining cache group content (defaults to "initial", "initial" and "all" requires adding these chunks to the HTML).

enforce?: boolean

Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group.

enforceSizeThreshold?: number | {}

Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.

filename?: string | ((pathData: "/home/runner/work/forge/forge/node_modules/webpack/types".PathData, assetInfo?: AssetInfo) => string)

Sets the template for the filename for created chunks.

idHint?: string

Sets the hint for chunk id.

layer?: string | Function | RegExp

Assign modules to a cache group by module layer.

maxAsyncRequests?: number

Maximum number of requests which are accepted for on-demand loading.

maxAsyncSize?: number | {}

Maximal size hint for the on-demand chunks.

maxInitialRequests?: number

Maximum number of initial chunks which are accepted for an entry point.

maxInitialSize?: number | {}

Maximal size hint for the initial chunks.

maxSize?: number | {}

Maximal size hint for the created chunks.

minChunks?: number

Minimum number of times a module has to be duplicated until it's considered for splitting.

minRemainingSize?: number | {}

Minimal size for the chunks the stay after moving the modules to a new chunk.

minSize?: number | {}

Minimal size for the created chunk.

minSizeReduction?: number | {}

Minimum size reduction due to the created chunk.

name?: string | false | Function

Give chunks for this cache group a name (chunks with equal name are merged).

priority?: number

Priority of this cache group.

reuseExistingChunk?: boolean

Try to reuse existing chunk (with name) when it has matching modules.

test?: string | Function | RegExp

Assign modules to a cache group by module name.

type?: string | Function | RegExp

Assign modules to a cache group by module type.

usedExports?: boolean

Compare used exports when checking common modules. Modules will only be put in the same chunk when exports are equal.