Open felixcicatt opened 4 months ago
Hi @felixcicatt , please excuse me for taking so much time before answering.
Is this a big problem? Or could be dealt with by relying on WSL? I'm not quite sure about providing this kind of support for Windows, given that almost no single real website runs on it, except for local development environments (and these can be "patched up" via WSL).
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.