about summary refs log tree commit diff stats
path: root/src/index.ts
blob: 4887dd6610a2c2ddb8a73b6fff4e82d409242bd0 (plain)
1
2
3
4
5
6
7
8
9
10
import { withHtmlLiveReload } from "bun-html-live-reload";
import serveStatic from "serve-static-bun";

const dir = Bun.argv.length > 2 ? Bun.argv[Bun.argv.length - 1] : "./";

export default withHtmlLiveReload({
  fetch: serveStatic(dir, {
    dotfiles: "allow",
  }),
});