Skip to content

Commit e7fe41b

Browse files
committed
feat: 404 page with dir list
1 parent 2b1a47a commit e7fe41b

7 files changed

Lines changed: 165 additions & 28 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ A minimal dev server with HMR (Hot Module Replacement) for TypeScript, TSX, CSS,
77
- **Zero config** — Works out of the box
88
- **Config file** — Optional `mini-dev.config.ts` or `mini-dev.config.js`
99
- **public/ directory** — Static assets (favicon, images, robots.txt) served at `/`
10+
- **404 page** — Custom 404 with a list of visitable paths when a route is not found
1011
- **TypeScript/TSX** — On-the-fly transpilation via esbuild
1112
- **HMR** — Hot module replacement without full page reload
1213
- **Simple API** — Programmatic and CLI usage

dist/dev-server.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ export declare class DevServer {
3333
stop(): Promise<void>;
3434
private handleRequest;
3535
private redirect;
36+
private listVisitablePaths;
37+
private serve404;
3638
private servePublic;
3739
private serveHMRClient;
3840
private serveHtml;

dist/dev-server.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dev-server.js

Lines changed: 78 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)