Skip to content

Commit b352ae0

Browse files
committed
fix(chunkfilename): use DEFAULT_FILENAME
use DEFAULT_FILENAME for options.chunkFilename when options.filename is a function
1 parent 35914c4 commit b352ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class MiniCssExtractPlugin {
135135
this.options.chunkFilename = filename;
136136
} else {
137137
// Elsewise prefix '[id].' in front of the basename to make it changing
138-
this.options.chunkFilename = filename.replace(
138+
this.options.chunkFilename = DEFAULT_FILENAME.replace(
139139
/(^|\/)([^/]*(?:\?|$))/,
140140
'$1[id].$2'
141141
);

0 commit comments

Comments
 (0)