You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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
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 returnstrue
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!
The text was updated successfully, but these errors were encountered: