Skip to content

Commit 9fda8bb

Browse files
authored
docs: make inspector docs more scannable (#991)
1 parent 3a61041 commit 9fda8bb

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/inspector.md

+13-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,23 @@ Note that `@sveltejs/vite-plugin-svelte` needs to be installed as a peer depende
66

77
## Setup
88

9-
### with Svelte config
9+
### enable in Svelte config
10+
11+
```js
12+
// svelte.config.js
13+
export default {
14+
vitePlugin: {
15+
inspector: true
16+
}
17+
};
18+
```
19+
20+
### enable with custom options in Svelte config
1021

1122
```js
1223
// svelte.config.js
1324
export default {
1425
vitePlugin: {
15-
// set to true for defaults or customize with object
1626
inspector: {
1727
toggleKeyCombo: 'meta-shift',
1828
showToggleButton: 'always',
@@ -22,7 +32,7 @@ export default {
2232
};
2333
```
2434

25-
### with environment variables
35+
### configure with environment variables
2636

2737
Svelte Inspector toggle keys and other options are personal preferences. As such it isn't always convenient to define them in a shared svelte config file.
2838
To allow you to use your own setup, svelte inspector can be configured via environment variables, both from shell and dotenv files.

0 commit comments

Comments
 (0)