vite-plugin-devtools-vue2 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # vite-plugin-vue2-devtools
1
+ # vite-plugin-devtools-vue2
2
2
 
3
3
  一个**仅用于开发环境**的 Vite 插件,为 Vue 2.6 应用注入一个悬浮的组件审查面板(devtools)。
4
4
 
@@ -24,7 +24,7 @@
24
24
  ## 安装
25
25
 
26
26
  ```bash
27
- npm i -D vite-plugin-vue2-devtools
27
+ npm i -D vite-plugin-devtools-vue2
28
28
  ```
29
29
 
30
30
  ## 使用
@@ -33,7 +33,7 @@ npm i -D vite-plugin-vue2-devtools
33
33
 
34
34
  ```js
35
35
  import { createVuePlugin } from 'vite-plugin-vue2';
36
- import vueDevtools from 'vite-plugin-vue2-devtools';
36
+ import vueDevtools from 'vite-plugin-devtools-vue2';
37
37
 
38
38
  export default {
39
39
  plugins: [createVuePlugin(), vueDevtools()]
package/lib/index.js CHANGED
@@ -13,7 +13,7 @@ const CLIENT_ENTRY = resolve(__dirname, 'main.js');
13
13
  const PLUGIN_ROOT = __dirname;
14
14
 
15
15
  /**
16
- * vite-plugin-vue2-devtools
16
+ * vite-plugin-devtools-vue2
17
17
  *
18
18
  * Dev-only plugin. Injects a small client bundle that hooks into the Vue 2.6
19
19
  * global devtools hook, walks the component tree and renders a floating
@@ -24,7 +24,7 @@ const PLUGIN_ROOT = __dirname;
24
24
  */
25
25
  const vueDevTools = () => {
26
26
  return {
27
- name: 'vite-plugin-vue2-devtools',
27
+ name: 'vite-plugin-devtools-vue2',
28
28
  // Inspector is a development aid only; never touch the production build.
29
29
  apply: 'serve',
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-devtools-vue2",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "vite-plugin-vue-devtools for vue@2.x",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",