generateSRIHashesModule function generates invalid strings on windows #84
Labels
bug
Something isn't working
devex
Development Experience
good first issue
Good for newcomers
question
Further information is requested
windows
Because file paths on windows use the backslash character as a path separator, and the
generateSRIHashesModule
function concatenates the path of pages directly as a string in theperPageSriHashes
part of the file it generates, the end result contains invalid strings, because the backslashes need to be escaped:This could be fixed by escaping the paths before concatenating them into the end result, with a function like below. I can submit a PR if you like.
The text was updated successfully, but these errors were encountered: