Skip to content

Commit

Permalink
Merge pull request #42 from ddPn08/main
Browse files Browse the repository at this point in the history
windowsでのRootコンポーネントのパスの修正
  • Loading branch information
qrac authored May 15, 2022
2 parents 022681b + 3153671 commit 681f84f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/build.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,10 @@ export async function buildHtmlPage(

const reg1 = new RegExp(`^${outDir}|index.html`, "g")
const reg2 = new RegExp(`.html`, "g")
const pathname = routePath.replace(reg1, "").replace(reg2, "")
const pathname = routePath
.replace(reg1, "")
.replace(reg2, "")
.replaceAll("\\", "/")
const location: MinistaLocation = { pathname: pathname }

const RenderComponent = () => {
Expand Down

0 comments on commit 681f84f

Please sign in to comment.