Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature suggestion for full static manifest output #471

Open
ryanbethel opened this issue Jun 30, 2021 · 2 comments
Open

Feature suggestion for full static manifest output #471

ryanbethel opened this issue Jun 30, 2021 · 2 comments

Comments

@ryanbethel
Copy link
Contributor

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 ryanbethel mentioned this issue Jul 3, 2021
10 tasks
@ryanblock
Copy link
Member

Is this feature still needed?

@ryanbethel
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants