We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1399707 commit 66132f9Copy full SHA for 66132f9
src/utils.js
@@ -416,6 +416,19 @@ function defaultGetLocalIdent(
416
data
417
);
418
419
+ if (options.regExp) {
420
+ const match = loaderContext.resourcePath.match(options.regExp);
421
+
422
+ if (match) {
423
+ match.forEach((matched, i) => {
424
+ interpolatedFilename = interpolatedFilename.replace(
425
+ new RegExp(`\\[${i}\\]`, "ig"),
426
+ matched
427
+ );
428
+ });
429
+ }
430
431
432
if (localIdentName.includes("[folder]")) {
433
interpolatedFilename = resolveFolderTemplate(
434
loaderContext,
0 commit comments