Skip to content

Allow to use the [N] placeholder in copyFiles() #649

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2020

Conversation

Lyrkan
Copy link
Collaborator

@Lyrkan Lyrkan commented Oct 8, 2019

This PR should fix #647 by passing the regExp option to the file-loader used by Encore.copyFiles().

It's a bit hacky since it changes the loader's options from the loader itself, but we should probably be fine for a while (I also tested it with [email protected] and the latest version of [email protected]).

@Lyrkan Lyrkan force-pushed the file-loader-regexp branch from effe965 to 76b0bec Compare October 8, 2019 20:47
@Lyrkan
Copy link
Collaborator Author

Lyrkan commented Oct 8, 2019

Failing tests are unrelated (see #650)

@Lyrkan Lyrkan force-pushed the file-loader-regexp branch from 76b0bec to b8ac398 Compare October 9, 2019 18:53
@weaverryan
Copy link
Member

Sorry for the delay. This is a pretty wild, in-depth solution. But it's well-covered with a test and I appreciate you checked it in Webpack 5 alpha!

@weaverryan weaverryan merged commit 28086b1 into symfony:master Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

copyFiles does not support pattern match placeholder
2 participants