functions icon indicating copy to clipboard operation
functions copied to clipboard

Feature suggestion for full static manifest output

Open ryanbethel opened this issue 4 years ago • 2 comments

I suggest adding an option to arc.static to output the full manifest of fingerprinted files rather than just a single one. I am building an app that creates a service worker to precache static assets. I would like to programmatically generate the list of assets to precache with fingerprinting enabled. I can do this now by reading the static.json file from shared, but this feels like it depends on internal implementation details of the fingerprinting. If we added an option the the arc.static function to output the full object it could.

I would be happy to write a PR to do this if wanted. The API could be something like arc.static('',{fullManifest:true}) and it would return the full manifest object.

ryanbethel avatar Jun 30 '21 22:06 ryanbethel

Is this feature still needed?

ryanblock avatar Mar 26 '24 16:03 ryanblock

I am not sure it is needed. There are work arounds in most cases that seem fine. You can read the static.json directly and get the full manifest. The original use case, I think, was to create a manifest for service worker to cache assets.

ryanbethel avatar Mar 26 '24 17:03 ryanbethel

Given it's been a few years and a year+ since we've been unsure if this is needed, I will opt to close this issue. Feel free to re-open if we think it is still a relevant feature request though.

filmaj avatar Mar 22 '25 12:03 filmaj