On this page

Options object for splitting chunks into smaller chunks.

Type:string

Sets the name delimiter for created chunks.

Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').

Type:RegExp | "async" | "all" | "initial" | ((chunk: Chunk) => boolean | undefined)

Select chunks for determining shared modules (defaults to "async", "initial" and "all" requires adding these chunks to the HTML).

Type:string[]

Sets the size types which are used when a number is used for sizes.

Type:number | { [index: string]: number }

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

Type:Object

Options for modules not selected by any other cache group.

Type:string

Sets the name delimiter for created chunks.

Type:RegExp | "async" | "all" | "initial" | ((chunk: Chunk) => boolean | undefined)

Select chunks for determining shared modules (defaults to "async", "initial" and "all" requires adding these chunks to the HTML).

Type:number | { [index: string]: number }

Maximal size hint for the on-demand chunks.

Type:number | { [index: string]: number }

Maximal size hint for the initial chunks.

Type:number | { [index: string]: number }

Maximal size hint for the created chunks.

Type:number | { [index: string]: number }

Minimal size for the created chunk.

Type:number | { [index: string]: number }

Minimum size reduction due to the created chunk.

Sets the template for the filename for created chunks.

Type:boolean

Prevents exposing path info when creating names for parts splitted by maxSize.

Type:number

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

Type:number | { [index: string]: number }

Maximal size hint for the on-demand chunks.

Type:number

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

Type:number | { [index: string]: number }

Maximal size hint for the initial chunks.

Type:number | { [index: string]: number }

Maximal size hint for the created chunks.

Type:number

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

Type:number | { [index: string]: number }

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

Type:number | { [index: string]: number }

Minimal size for the created chunks.

Type:number | { [index: string]: number }

Minimum size reduction due to the created chunk.

Type:string | false | ((module: Module, chunks: Chunk[], key: string) => string | undefined)

Give chunks created a name (chunks with equal name are merged).

Type:boolean

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