We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.replaceAll
1 parent 2ad87dc commit 018b52eCopy full SHA for 018b52e
src/lib/generate-output.ts
@@ -70,7 +70,7 @@ export async function generateOutput(
70
71
const page = await browser.newPage();
72
73
- const urlPathname = join(relativePath, 'index.html').replaceAll(sep, posix.sep);
+ const urlPathname = join(relativePath, 'index.html').split(sep).join(posix.sep);
74
75
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
76
await page.goto(`http://localhost:${config.port!}/${urlPathname}`); // make sure relative paths work as expected
0 commit comments