@@ -8,79 +8,89 @@ ikun-svelte-devtools
8
8
🍨 A vite plugin that improves the svelte development experience
9
9
</p >
10
10
11
-
12
11
## Features
13
12
14
13
![ overview.png] ( public%2Foverview.png )
15
14
16
15
### page
17
16
18
- In the pages module, you can quickly understand which pages the project contains
17
+ In the pages module, you can quickly understand which pages the project contains
19
18
20
19
![ page.png] ( public%2Fpage.png )
21
20
22
21
### Routes
23
- In the Routes module, you can quickly understand the routing information of the project
22
+
23
+ In the Routes module, you can quickly understand the routing information of the project
24
24
25
25
![ router.png] ( public%2Frouter.png )
26
26
27
27
### Assets
28
- In the Assets module, you can quickly understand the static resources of the project, including pictures, fonts, etc.
28
+
29
+ In the Assets module, you can quickly understand the static resources of the project, including pictures, fonts, etc.
29
30
30
31
![ assets.png] ( public%2Fassets.png )
31
32
32
33
### Search Packages
33
- In the Search Packages module you can search for dependencies and install or uninstall them
34
+
35
+ In the Search Packages module you can search for dependencies and install or uninstall them
34
36
35
37
![ search-package.png] ( public%2Fsearch-package.png )
36
38
37
39
### Inspect
38
- In the Inspect module you can view the compiled code, It comes from ` vite-plugin-inspect ` support.
40
+
41
+ In the Inspect module you can view the compiled code, It comes from ` vite-plugin-inspect ` support.
39
42
40
43
![ inpect.png] ( public%2Finpect.png )
41
44
42
45
### Graph
43
- In the Graph module, you can quickly understand the reference relationship between js and sfc through visualization
46
+
47
+ In the Graph module, you can quickly understand the reference relationship between js and sfc through visualization
44
48
45
49
![ graph.png] ( public%2Fgraph.png )
46
50
47
51
### Inspector
52
+
48
53
In the Inspector module, you can click on an element on the page to open the corresponding source code in the IDE.
49
54
It comes from ` svelte-kit-inspector ` support.
50
55
51
-
52
56
### EyeDropper
57
+
53
58
EyeDropper module can open a color picker
54
59
55
60
## Install
56
61
57
62
``` bash
58
63
npm i @ikun-svelte-devtools/server -D
59
64
```
65
+
60
66
Or
67
+
61
68
``` bash
62
69
yarn add @ikun-svelte-devtools/server -D
63
70
```
71
+
64
72
Or
73
+
65
74
``` bash
66
75
pnpm add @ikun-svelte-devtools/server -D
67
76
```
68
77
69
78
## Usage
79
+
70
80
``` ts
71
81
// vite.config.ts
72
82
import { sveltekit } from ' @sveltejs/kit/vite' ;
73
83
import { defineConfig } from ' vite' ;
74
84
import svelteDevtools from ' @ikun-svelte-devtools/server' ;
75
85
export default defineConfig ({
76
- plugins: [
77
- svelteDevtools ({
78
- sveltekit: sveltekit ()
79
- }),
80
- ],
86
+ plugins: [
87
+ svelteDevtools ({
88
+ sveltekit: sveltekit ()
89
+ })
90
+ ]
81
91
});
82
-
83
92
```
93
+
84
94
## Thanks
85
95
86
96
- [ svelte] ( https://github.com/sveltejs/svelte )
0 commit comments