Skip to content

Commit e2c1609

Browse files
authored
add piping docs (#339)
1 parent f8c62b5 commit e2c1609

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/vite-plugin.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,28 @@ export default {
180180
}
181181
```
182182

183+
### consolePiping
184+
185+
Configuration for bidirectional console piping between client and server. When enabled, console logs from the client will appear in your terminal, and server logs will appear in the browser console. Defaults to enabled.
186+
187+
```ts
188+
import { devtools } from '@tanstack/devtools-vite'
189+
190+
export default {
191+
plugins: [
192+
devtools({
193+
consolePiping: {
194+
// Whether to enable console piping (defaults to true)
195+
enabled: true,
196+
// Which console methods to pipe (defaults to all)
197+
levels: ['log', 'warn', 'error', 'info', 'debug'],
198+
}
199+
}),
200+
// ... rest of your plugins here
201+
],
202+
}
203+
```
204+
183205
## Features
184206

185207
### Go to source

0 commit comments

Comments
 (0)