Skip to content

copyFiles does not support pattern match placeholder #647

@dontub

Description

@dontub

In https://github.com/webpack-contrib/file-loader#placeholders there's the pattern match placeholder [N] documented:

The n-th match obtained from matching the current file name against the regExp.

I would expect that copyFiles would use the matches from pattern, though [N] is not replaced. For example in the following code

Encore.copyFiles({
     from: './assets/',
     to: '[path][0]',
     pattern: /.*/,
});

[0] should be replaced by the entire tested string, though the resulting filename is always [0].

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