Skip to content

Commit

Permalink
improve build logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rossrobino committed Sep 25, 2024
1 parent f1d64f5 commit 135fda4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-peaches-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"domco": patch
---

Improves build logs
10 changes: 8 additions & 2 deletions packages/domco/src/plugin/lifecycle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const lifecyclePlugin = (adapter?: Adapter): Plugin => {
console.log(
style.italic(
style.dim(
"run `vite preview` to preview your func with Vite and Node.js.",
"run `vite preview` to preview your application with Vite and Node.js.",
),
),
);
Expand Down Expand Up @@ -194,7 +194,13 @@ const prerender = async () => {
);

// Sort alphabetically for logs.
staticFiles.sort((a, b) => a.path.localeCompare(b.path));
staticFiles.sort(
(a, b) =>
a.path
.split("index.html")
.at(0)
?.localeCompare(b.path.split("index.html").at(0) ?? "") ?? 1,
);

const maxLengths = getMaxLengths(staticFiles);

Expand Down

0 comments on commit 135fda4

Please sign in to comment.