Skip to content

Commit

Permalink
fix: relative path file in production CSR
Browse files Browse the repository at this point in the history
  • Loading branch information
buttercubz committed Jun 20, 2021
1 parent 51764ac commit 1e16fff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/prepare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export async function Dist() {
// normalize path ./example to /example
if (!output.endsWith(".html")) {
transform.push({
target: `="./${basename(output)}"`,
replacer: `="/${basename(output)}"`,
target: `="/${basename(output)}"`,
replacer: `="./${basename(output)}"`,
});
}

Expand Down

0 comments on commit 1e16fff

Please sign in to comment.