Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【开源自荐】开发提效神器——一款VUE 页面元素源代码自动定位插件 #3178

Open
zh-lx opened this issue Jun 9, 2023 · 0 comments
Labels

Comments

@zh-lx
Copy link

zh-lx commented Jun 9, 2023

这是一款基于 webpack/vite 的 页面元素源代码自动定位工具,只需要引入 webpack/vite 插件,在开发环境下点击页面上的 DOM 元素,能够自动帮你定位到元素对应的 VSCode 源代码的位置,从而大幅提升你的开发效率。

使用效果如下

image

安装使用

使用方式很简单,以 vite 的插件为例,只需要两步:

  1. 执行以下命令安装插件

    npm i vite-code-inspector-plugin -D
  2. vite.config.js 中添加以下配置:

    // vite.config.js
    import { defineConfig } from 'vite';
    import { ViteCodeInspectorPlugin } from 'vite-code-inspector-plugin';
    
    export default defineConfig({
      plugins: [ViteCodeInspectorPlugin()],
    });

项目 GITHUB 地址

code-inspector

@zh-lx zh-lx changed the title 【开源自荐】基于 webpack/vite 的 VUE 页面元素源代码自动定位插件 【开源自荐】开发提效神器——一款VUE 页面元素源代码自动定位插件 Jun 9, 2023
@ruanyf ruanyf added the weekly label Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants