preload-webpack-plugin icon indicating copy to clipboard operation
preload-webpack-plugin copied to clipboard

Use regex in 'include' option

Open ATrogolo opened this issue 4 years ago • 0 comments

Hi @jeffposnick, what do you think about if the option 'include' can accept regex items?

This addresses a problem when the SplitChunks Webpack plugin returns chunks' names which share a "common" part. i.e.: package1-package2-vendors.[hash].js package3-package4-vendors.[hash].js

As if we'd like to preload every asset with "vendors" in the chunk name.

Please, let me know about

Cheers, Andrea

ATrogolo avatar Nov 26 '20 08:11 ATrogolo