Content
@
0 reply
0 recast
0 reaction
Darryl Yeo đ ïž
@darrylyeo
Current rabbit hole: subresource integrity (SRI) and static file names with deterministic hashes. (Anyone know how to configure a bundler to name and export JavaScript variables with the same names and in the same order?)
4 replies
0 recast
10 reactions
Darryl Yeo đ ïž
@darrylyeo
@stevedylandev.eth @polluterofminds, curious if youâve explored this at all.
1 reply
0 recast
3 reactions
Steve
@stevedylandev.eth
Heard of it but haven't dug into it might. Seems like there might be a few Vite plugins out there but many of them are pretty outdated https://github.com/ElMassimo/vite-plugin-manifest-sri
1 reply
0 recast
2 reactions
Steve
@stevedylandev.eth
In theory you could write a script to run post build that runs this for each file and then updates the script tags but definitely tricky https://snippets.so/snip/XLPyoLrtoN
1 reply
0 recast
1 reaction
Darryl Yeo đ ïž
@darrylyeo
@polymutex.eth did find this Astro plugin which works for enabling SRI for a given build, but it doesnât seem to address the issue of JavaScript build pipeline itself outputting slightly different code on each run. I think that may be a whole can of worms unto itself. https://github.com/KindSpells/astro-shield
1 reply
0 recast
2 reactions