Skip to content

Commit 8c3acf4

Browse files
committed
docs: update
1 parent 555c2d6 commit 8c3acf4

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,29 @@ import TurboConsole from "vite-plugin-turbo-console";
4141

4242
// https://vitejs.dev/config/
4343
export default defineConfig({
44-
plugins: [TurboConsole()],
44+
plugins: [TurboConsole({
45+
/* options here */
46+
})],
4547
});
4648
```
49+
**options**
50+
```ts
51+
interface TurboConsoleOptions {
52+
/**
53+
* Add a string prefix to the console log.
54+
*/
55+
prefix?: string
56+
/**
57+
* Add a string suffix to the console log.
58+
*/
59+
suffix?: string
60+
/**
61+
* Whether to disable the launch editor feature.
62+
* default: false
63+
*/
64+
disableLaunchEditor?: boolean
65+
}
66+
```
4767

4868
## ❤️ Credits
4969
Inspired by

0 commit comments

Comments
 (0)