From e9827982440825b7d0182908307bcf7d47c2c101 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 4 Mar 2022 11:40:06 +0100 Subject: [PATCH] fixes #52 --- src/cli/prepare.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/cli/prepare.ts b/src/cli/prepare.ts index 0cde4c6..dd2f1e8 100644 --- a/src/cli/prepare.ts +++ b/src/cli/prepare.ts @@ -67,13 +67,14 @@ export async function Dist() { ? join("dist", "index.html") : join("dist", basename(output)); - // normalize path ./example to /example - if (!output.endsWith(".html")) { - transform.push({ - target: `="./${basename(output)}"`, - replacer: `="/${basename(output)}"`, - }); - } + // Commenting the following lines to fix https://github.com/crewdevio/Snel/issues/52 + // // normalize path ./example to /example + // if (!output.endsWith(".html")) { + // transform.push({ + // target: `="./${basename(output)}"`, + // replacer: `="/${basename(output)}"`, + // }); + // } if (output.endsWith("index.html")) { source = (source as string).replace(``, "");