diff --git a/builder.js b/builder.js index 3c6ddb1..0f5dca7 100644 --- a/builder.js +++ b/builder.js @@ -14,7 +14,7 @@ function build() { const mountedFiles = new Set(); const result = data.replace(mountRegex, (_match, file) => { - let fileContent = fs.readFileSync(path.normalize(file), "utf8"); + let fileContent = fs.readFileSync(file.replace(/\\/g, "/"), "utf8"); mountedFiles.add(path.resolve(file)); const inlinePhpVarRegex = /"<.*?)\)>>"/g;