blob: 59913b3059fa4e1278634e9ab1324d26625a6ea3 (
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"
}),
})
|