You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/inspector.md
+13-3
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,23 @@ Note that `@sveltejs/vite-plugin-svelte` needs to be installed as a peer depende
6
6
7
7
## Setup
8
8
9
-
### with Svelte config
9
+
### enable in Svelte config
10
+
11
+
```js
12
+
// svelte.config.js
13
+
exportdefault {
14
+
vitePlugin: {
15
+
inspector:true
16
+
}
17
+
};
18
+
```
19
+
20
+
### enable with custom options in Svelte config
10
21
11
22
```js
12
23
// svelte.config.js
13
24
exportdefault {
14
25
vitePlugin: {
15
-
// set to true for defaults or customize with object
16
26
inspector: {
17
27
toggleKeyCombo:'meta-shift',
18
28
showToggleButton:'always',
@@ -22,7 +32,7 @@ export default {
22
32
};
23
33
```
24
34
25
-
### with environment variables
35
+
### configure with environment variables
26
36
27
37
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.
28
38
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