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

Having options to remove certain files from the asset map #263

Open
ghost opened this issue Dec 16, 2020 · 0 comments
Open

Having options to remove certain files from the asset map #263

ghost opened this issue Dec 16, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 16, 2020

Hi,

I found the add-on super helpful for the project that I'm working on. One improvement that I think would be very nice to have is to provide users with an option to ignore certain files in the asset map so that they only have to keep track of the mappings for assets that they really need.

I'm imagining having some of these options available:

  • excludeExtensions: an array of file extensions that will be ignored. In my project we don't care about mappings of .js, .css, or .map files.
  • filter: a function that will be called on each mapping in the asset map. If it returns true for a key-value pair, the pair will be kept. Otherwise the pair will be removed from the map.

Once again, thanks for the awesome add-on!

@ghost ghost changed the title Have options to remove certain files from the asset map Having options to remove certain files from the asset map Dec 16, 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

No branches or pull requests

0 participants