Skip to content

SplitChunks.name: Specify that setting a specific name merges all chunks in one file #2763

Closed
@pherrymason

Description

@pherrymason

Feature to document
Based on @sokra comment here, setting splitChunks.name to a string will merge all chunks into a single one.
This is not documented here: webpack/webpack#8582 (comment)

Author(s)
?

Additional information
The docs document properly other "edge" cases as:

If the name matches an entry point name, the entry point will be removed.

But it caught me out of guard that setting a name generated one single chunk, so I guess it would be useful to have this case documented too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions