Skip to content

Commit 0785eff

Browse files
committed
Fix the doc page for html
1 parent 32a47ae commit 0785eff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/bundler/html.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ import "tailwindcss";
194194

195195
Only one of those are necessary, not all three.
196196

197-
## `--console` streams console logs from the browser to the terminal
197+
### Echo console logs from browser to terminal
198198

199199
Bun's dev server supports streaming console logs from the browser to the terminal.
200200

201201
To enable, pass the `--console` CLI flag.
202202

203-
{% bunDevServerTerminal alt="bun --console ./index.html" path="./index.html" routes="" /%}
203+
{% bunDevServerTerminal alt="bun ./index.html --console" path="./index.html --console" routes="" /%}
204204

205-
Each call to `console.log` or `console.error` will be broadcast to the terminal that started the server.
205+
Each call to `console.log` or `console.error` will be broadcast to the terminal that started the server. This is useful to see errors from the browser in the same place you run your server. This is also useful for AI agents that watch terminal output.
206206

207207
Internally, this reuses the existing WebSocket connection from hot module reloading to send the logs.
208208

0 commit comments

Comments
 (0)