-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Excluding vs testing files #1127
Comments
@stefanvermaas The idea was to use The current setup is almost there except we now have to manually exclude files we don't want file loader to process. Perhaps, we can offer an API for configuring file loader extensions instead of copying loader to environment.js. environment.loaders.file.exclude('md')
environment.loaders.file.exclude(['md', 'svg']) What do you think? |
Lets revert this change since it doesn't solve any problem, it did with |
Hi all,
A recent change to the
file-loader
that is included inwebpacker
broke our loaders implementation (in 3.2.0). The problem was that before this update a certain number of files was included/tested for thefile-loader
matcher, but now certain files were excluded from thefile-loader
.I'm wondering why
exclude
is used in favour oftest
? It seemsexcluding
file extensions makes it harder to maintain and a hell to debug the actual problem.If people still want to use
exclude
in favour of theuse
action, I would like to propose to also add.md
to the list.I've fixed things on our side by adding
.md
files to the list of files to be excluded (in case any one is running into the same problems).The text was updated successfully, but these errors were encountered: