vite-plugin-code-locate
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

vite-plugin-code-locate

Chrome locate code location

简体中文 | English

🚀 features

  • Combined with the chrome extension, you can quickly locate the code location of DOM, accurate to the line

📦 install

npm install vite-plugin-code-locate -D

🦄 usage

  • installed chrome extension codeLocate
  • vite.config.ts
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import codeLocate from 'vite-plugin-code-locate';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    codeLocate()
  ]
});
  • right click menu select "open/close code locate"
  • click the project running page's dom, it's will auto open the dom related code in vscode(PS: you should installed vscode env variable)

reference 聊聊在VSCode中怎么点击DOM 自动定位到相应代码行?

licence

MIT

Package Sidebar

Install

npm i vite-plugin-code-locate

Weekly Downloads

4

Version

1.0.5

License

MIT

Unpacked Size

4.53 kB

Total Files

5

Last publish

Collaborators

  • hejianglin5521