Skip to content

[Feature]: Support function type for CssExtractRspackPlugin.filename and CssExtractRspackPlugin.chunkFilename #6215

@JohnDaly

Description

@JohnDaly

What problem does this feature solve?

Allow the filename and chunkFilename to use functions to align with the APIs from mini-css-extract-plugin. Currently, these can only be configured with string. Functions allow for more flexibility to handle special cases for generated files.

The rationale is the same as output.filename and output.chunkFilename, mentioned here:
#3483

What does the proposed API of configuration look like?

The new APIs would align with those used in mini-css-extract-plugin

Metadata

Metadata

Assignees

Labels

featNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions