Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Aslemammad committed Dec 5, 2023
1 parent 00c0217 commit 33eba90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 4 additions & 1 deletion packages/waku/src/lib/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,10 @@ const emitHtmlFiles = async (
});

// https://github.com/dai-shi/waku/pull/181#discussion_r1412744262
await rm(dirname(publicIndexHtmlFile), { force: true, recursive: true });
await rm(joinPath(publicIndexHtmlFile, '..'), {
force: true,
recursive: true,
});
clientBuildOutput.output.splice(
clientBuildOutput.output.findIndex(
(v) => v.fileName === joinPath(config.srcDir, config.indexHtml),
Expand Down
5 changes: 0 additions & 5 deletions packages/waku/src/lib/utils/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,3 @@ export const extname = (filePath: string) => {
const index = filePath.lastIndexOf('.');
return index > 0 ? filePath.slice(index) : '';
};

export const dirname = (filePath: string) => {
const index = filePath.lastIndexOf('/');
return index > 0 ? filePath.slice(0, index) : '.';
};
2 changes: 1 addition & 1 deletion packages/website/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<!--placeholder1-->
<div id="root"></div>
<!--/placeholder1-->
<script src="/src/main.tsx" async type="module"></script>
<script src="/main.tsx" async type="module"></script>
<!--placeholder2-->
<!--/placeholder2-->
</body>
Expand Down

0 comments on commit 33eba90

Please sign in to comment.