Skip to content

Commit 0f63e53

Browse files
committed
docs: readme
1 parent 190707a commit 0f63e53

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ npm install vite-plugin-vue-inspector -D
3939
### Configuration Vite
4040

4141
```ts
42-
// for vue2
42+
// for Vue2
4343

4444
import { defineConfig } from "vite"
4545
import { createVuePlugin } from "vite-plugin-vue2"
@@ -49,27 +49,26 @@ export default defineConfig({
4949
plugins: [
5050
createVuePlugin(),
5151
Inspector({
52-
vue: 2,
53-
enabled: true
52+
vue: 2
5453
}),
5554
],
5655
})
5756
```
5857

5958
```ts
60-
// for vue3
59+
// for Vue3
6160

6261
import { defineConfig } from "vite"
6362
import Vue from "@vitejs/plugin-vue"
6463
import Inspector from "vite-plugin-vue-inspector"
6564

6665
export default defineConfig({
67-
plugins: [Vue(), Inspector({ enabled: true })],
66+
plugins: [Vue(), Inspector()],
6867
})
6968
```
7069

7170
```ts
72-
// for nuxt
71+
// for Nuxt3
7372
// nuxt.config.ts
7473

7574
import { defineNuxtConfig } from 'nuxt'
@@ -79,8 +78,7 @@ export default defineNuxtConfig({
7978
vite: {
8079
plugins:[
8180
Inspector({
82-
appendTo: "entry.mjs",
83-
enabled: true
81+
appendTo: "entry.mjs"
8482
})
8583
]
8684
}
@@ -140,9 +138,9 @@ interface VitePluginInspectorOptions {
140138

141139
### Example
142140

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)
146144

147145
## 🔌 Configuration IDE / Editor
148146

0 commit comments

Comments
 (0)