opened
Lyrkan
username_0
This PR adds some extra checks to make sure that files *really* match the pattern used in `copyFiles(...)` before the `file-loader` is called (closes #556).

For a full description of the issue see https://github.com/symfony/webpack-encore/issues/556#issuecomment-481440004, but here is a TL;DR:

Currently, if you have a folder that contains a `foo.js` file and calls `copyFile(...)` with a pattern that excludes `.js` files, that file will still be copied.

This is caused by the `resolve.extensions` mechanism of Webpack that also applies to `require.context(...)` calls (on which this feature relies) and includes `./foo` (without the extensions) to the list of files that should be imported.
Add extra checks to the copyFiles feature
issue
created
weaverryan
username_1
WOW! Another deep, difficult bug. Thank you @username_0!
comment