Исправлена отдача статики под Windows

This commit is contained in:
Book Pauk
2022-10-15 21:51:45 +07:00
parent 8aab918ac5
commit 061f50b714
2 changed files with 8 additions and 3 deletions

View File

@@ -108,6 +108,10 @@ function gzipFile(inputFile, outputFile, level = 1) {
});
}
function toUnixPath(dir) {
return dir.replace(/\\/g, '/');
}
module.exports = {
sleep,
versionText,
@@ -120,4 +124,5 @@ module.exports = {
intersectSet,
randomHexString,
gzipFile,
toUnixPath,
};