AnujRNair / webpack-extraneous-file-cleanup-plugin

A webpack plugin to remove unwanted files which may have been created and output due to multiple entry points
MIT License
25 stars 10 forks source link

implement glob pattern support for inclusion and exclusion #11

Open simbo opened 6 years ago

simbo commented 6 years ago

Nice plugin! But i need more granular options than just filesize... :)

This implements the ability to work with glob patterns.

New Options:

simbo commented 6 years ago

Please let me know, if you are planning to merge this or not. Or if you have any remarks or wishes for changes.

I need this functionality published and would like to avoid to create a second plugin, that does almost the same as yours.

(I can also help you with setting up travis for automated npm releases, if you are looking for a more time-saving and convenient workflow.)

AnujRNair commented 6 years ago

Hi @simbo - thanks for the PR, and apologies for the delay!

Although an excellent idea, I think this extra functionality is actually outside of the scope of this plugin - I'm wary about making a 'mega' plugin which has all options possible to clean up in multiple different ways.

I would suggest maybe removing the asset size code, and publishing your changes under a different plugin - I'm sure others would find it useful too!

Apologies for the delay again, and thanks for the contribution