Allow users to choose rollup generated files for pre-caching
Would you consider using writeBundle
instead of (or in conjunction with) generateBundle
as the hook this plugin uses?
On writeBundle
the user could benefit from the globDirectory
and globPattern
workbox-build options to pick assets for pre-caching. This would be the easiest to change as well.
A probably better approach would be to prepare and pass the bundle
to workbox-build like the official workbox-webpack-plugin does.