diff --git a/scripts/dev-server.ts b/scripts/dev-server.ts index ee79fd7..1b5af5d 100644 --- a/scripts/dev-server.ts +++ b/scripts/dev-server.ts @@ -10,6 +10,12 @@ async function main() { metafile: true, }) + // TODO(jlfwong): This only builds the index file once at the server boot. It + // would be nice to have this rebuild on demand, but I don't see an API + // available from esbuild that would let me intercept to do this. + // + // I could just build my own server to do this and call rebuild manually, but + // this is good enough for now. let buildResult = await ctx.rebuild() generateIndexHtml(buildResult, outdir)