Skip to content
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

Add option to filter assets #177

Open
jakebellacera opened this issue May 10, 2019 · 1 comment
Open

Add option to filter assets #177

jakebellacera opened this issue May 10, 2019 · 1 comment

Comments

@jakebellacera
Copy link

It'd be nice to exclude assets based off of filename, path, etc. For instance, we don't need to include assets from CSS into the manifest.

Describe the solution you'd like
An option to filter assets based off of path, name, etc:

new AssetsPlugin({
  exclude: ({ path }) => /src\/scss/.test(path)
});
@ztoben
Copy link
Owner

ztoben commented May 13, 2019

For now you could use the fileTypes option, but I agree that having some kind of regex match would be a nice feature. Thanks for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants