Options object for splitting chunks into smaller chunks.

Hierarchy

  • OptimizationSplitChunksOptions

Properties

automaticNameDelimiter?: string

Sets the name delimiter for created chunks.

cacheGroups?: {
    [index: string]: string | false | Function | RegExp | OptimizationSplitChunksCacheGroup;
}

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

Type declaration

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

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

Type declaration

    • (chunk): boolean
    • Parameters

      Returns boolean

defaultSizeTypes?: string[]

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

enforceSizeThreshold?: number | {
    [index: string]: number;
}

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

Type declaration

  • [index: string]: number
fallbackCacheGroup?: {
    automaticNameDelimiter?: string;
    chunks?: "all" | "initial" | "async" | ((chunk) => boolean);
    maxAsyncSize?: number | {
        [index: string]: number;
    };
    maxInitialSize?: number | {
        [index: string]: number;
    };
    maxSize?: number | {
        [index: string]: number;
    };
    minSize?: number | {
        [index: string]: number;
    };
    minSizeReduction?: number | {
        [index: string]: number;
    };
}

Options for modules not selected by any other cache group.

Type declaration

  • Optional automaticNameDelimiter?: string

    Sets the name delimiter for created chunks.

  • Optional chunks?: "all" | "initial" | "async" | ((chunk) => boolean)

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

  • Optional maxAsyncSize?: number | {
        [index: string]: number;
    }

    Maximal size hint for the on-demand chunks.

  • Optional maxInitialSize?: number | {
        [index: string]: number;
    }

    Maximal size hint for the initial chunks.

  • Optional maxSize?: number | {
        [index: string]: number;
    }

    Maximal size hint for the created chunks.

  • Optional minSize?: number | {
        [index: string]: number;
    }

    Minimal size for the created chunk.

  • Optional minSizeReduction?: number | {
        [index: string]: number;
    }

    Minimum size reduction due to the created chunk.

filename?: string | ((pathData, assetInfo?) => string)

Sets the template for the filename for created chunks.

Type declaration

    • (pathData, assetInfo?): string
    • Parameters

      Returns string

hidePathInfo?: boolean

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

maxAsyncRequests?: number

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

maxAsyncSize?: number | {
    [index: string]: number;
}

Maximal size hint for the on-demand chunks.

Type declaration

  • [index: string]: number
maxInitialRequests?: number

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

maxInitialSize?: number | {
    [index: string]: number;
}

Maximal size hint for the initial chunks.

Type declaration

  • [index: string]: number
maxSize?: number | {
    [index: string]: number;
}

Maximal size hint for the created chunks.

Type declaration

  • [index: string]: number
minChunks?: number

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

minRemainingSize?: number | {
    [index: string]: number;
}

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

Type declaration

  • [index: string]: number
minSize?: number | {
    [index: string]: number;
}

Minimal size for the created chunks.

Type declaration

  • [index: string]: number
minSizeReduction?: number | {
    [index: string]: number;
}

Minimum size reduction due to the created chunk.

Type declaration

  • [index: string]: number
name?: string | false | Function

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

usedExports?: boolean

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

Generated using TypeDoc