Skip to content

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 webpack@5.0.0-alpha.29 and the latest version of file-loader@4.2.0).

@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