Open Bwc9876 opened 7 months ago
Hi @Bwc9876, that sounds like a good idea 😃. I have some doubts about your proposal, though.
How do you expect it to work? In my mind I have something quite simple, just having an exact equivalent of the "hashes module" but in JSON format.
So, if today we have sri.hashesModule
, we would also have the option sri.hashesJson
(or something similar, I'd have to think about its name).
Yeah I was thinking the same thing, another option to specify a path to output the JSON to like sri.hashesJson
would work.
Hey there, this project seems super handy!
One thing is that in an SSR context where the Astro output is being used by a framework written in another language (Django, Flask, Rocket, etc) it may be handy to have an option to output SRI hashes of a statically generated site to JSON instead of a JS module.
Upvote & Fund