Skip to content

Commit

Permalink
fix: use absolute path to web entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarkivra committed Mar 16, 2022
1 parent 0116c77 commit 04f9d84
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cli/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import type { Config } from "../types";

export const htmlContent = (config: Config) => {
const scriptPath =
config.__cutomToyboxEntrypoint ||
relative(process.cwd(), join(__dirname, "../webapp/index.tsx"));
config.__cutomToyboxEntrypoint || join(__dirname, "../webapp/index.tsx");
return `
<!DOCTYPE html>
Expand Down Expand Up @@ -37,7 +36,7 @@ export const htmlContent = (config: Config) => {
<div id="app"></div>
<script
type="module"
src="/${scriptPath}"
src="${scriptPath}"
></script>
</body>
</html>
Expand Down

0 comments on commit 04f9d84

Please sign in to comment.