Open nhoizey opened 4 years ago
It kinda feels like the service worker test covers the underlying mechanisms to do this. We need to be careful that we don't end up with 10 tests that are checking the same functionality. But maybe this is a common enough pattern to document. Hmm.
I don't know if this is common enough, indeed.
However, it looks like the service worker test covers the underlying mechanism (having a list of hashed assets), but not the creation of a file with this content.
I see in https://bundlers.tooling.report/non-js-resources/service-worker/ that the list of hashed resources is available for the Service Worker:
It would be nice adding a test to know if the bundler can generate a manifest file with such data, when we want to use it in another tool.
I, for example, run first Rollup and then Eleventy. I had to use the rollup-plugin-entrypoint-hashmanifest plugin (thanks @surma!) for the JS hashes manifests (even if there's an issue with multiple builds), and create my own manifest for CSS hashes.