Add comment with caveat about dev-server.ts
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user