@@ -39,7 +39,7 @@ npm install vite-plugin-vue-inspector -D
39
39
### Configuration Vite
40
40
41
41
``` ts
42
- // for vue2
42
+ // for Vue2
43
43
44
44
import { defineConfig } from " vite"
45
45
import { createVuePlugin } from " vite-plugin-vue2"
@@ -49,27 +49,26 @@ export default defineConfig({
49
49
plugins: [
50
50
createVuePlugin (),
51
51
Inspector ({
52
- vue: 2 ,
53
- enabled: true
52
+ vue: 2
54
53
}),
55
54
],
56
55
})
57
56
```
58
57
59
58
``` ts
60
- // for vue3
59
+ // for Vue3
61
60
62
61
import { defineConfig } from " vite"
63
62
import Vue from " @vitejs/plugin-vue"
64
63
import Inspector from " vite-plugin-vue-inspector"
65
64
66
65
export default defineConfig ({
67
- plugins: [Vue (), Inspector ({ enabled: true } )],
66
+ plugins: [Vue (), Inspector ()],
68
67
})
69
68
```
70
69
71
70
``` ts
72
- // for nuxt
71
+ // for Nuxt3
73
72
// nuxt.config.ts
74
73
75
74
import { defineNuxtConfig } from ' nuxt'
@@ -79,8 +78,7 @@ export default defineNuxtConfig({
79
78
vite: {
80
79
plugins:[
81
80
Inspector ({
82
- appendTo: " entry.mjs" ,
83
- enabled: true
81
+ appendTo: " entry.mjs"
84
82
})
85
83
]
86
84
}
@@ -140,9 +138,9 @@ interface VitePluginInspectorOptions {
140
138
141
139
### Example
142
140
143
- - [ vue2 ] ( https://github.com/webfansplz/vite-plugin-vue-inspector/tree/main/example/vue2 )
144
- - [ vue3 ] ( https://github.com/webfansplz/vite-plugin-vue-inspector/tree/main/example/vue3 )
145
- - [ nuxt3 ] ( https://github.com/webfansplz/vite-plugin-vue-inspector/tree/main/example/nuxt )
141
+ - [ Vue2 ] ( https://github.com/webfansplz/vite-plugin-vue-inspector/tree/main/example/vue2 )
142
+ - [ Vue3 ] ( https://github.com/webfansplz/vite-plugin-vue-inspector/tree/main/example/vue3 )
143
+ - [ Nuxt3 ] ( https://github.com/webfansplz/vite-plugin-vue-inspector/tree/main/example/nuxt )
146
144
147
145
## 🔌 Configuration IDE / Editor
148
146
0 commit comments