haifeng2013 / rollup-plugin-bundle-html

MIT License
27 stars 11 forks source link

Add an 'ignore' parameter to ignore files matching the specified regex #18

Closed DirtyHairy closed 5 years ago

DirtyHairy commented 5 years ago

This change adds an ignore parameter that allows to specify a regex for more fine-grained control over the injected files. If ignore is provided, all candidates for injection will be tested against this regex and ignored if they match.

My usecase: I have a set of web workers in my target directory which must not be loaded from the generated HTML.

haifeng2013 commented 5 years ago

Looks good, thanks a lot.