DEV Community

Cover image for Enhancing Vue Development with vite-plugin-vue-inspector-plus
varHarrie
varHarrie

Posted on

1

Enhancing Vue Development with vite-plugin-vue-inspector-plus

vite-plugin-vue-inspector-plus is a Vite plugin designed to enhance the Vue development experience. This plugin seamlessly integrates with Vue Devtools or Vue Inspector, making component inspection more efficient than ever.

You can click on an element with a shortcut key to open a popover that displays its component hierarchy. By clicking on any item in the hierarchy, you can quickly access the corresponding source code file for that component.

Installation

npm install vite-plugin-vue-inspector-plus --save-dev
Enter fullscreen mode Exit fullscreen mode

Usage

This plugin needs to be used with Vue Devtools or Vue Inspector.

// vite.config.js

import { defineConfig } from 'vite';
import VueDevTools from 'vite-plugin-vue-devtools';
import VueInspectorPlus from 'vite-plugin-vue-inspector-plus';

export default defineConfig({
  plugins: [VueDevTools(), VueInspectorPlus()],
});
Enter fullscreen mode Exit fullscreen mode

Options

  • modifierKey: string - The modifier key to show the inspector dropdown. Default: 'ctrl|meta'.

License

This project is licensed under the MIT License


For more information and updates, visit the GitHub repository.

Heroku

Deliver your unique apps, your own way.

Heroku tackles the toil — patching and upgrading, 24/7 ops and security, build systems, failovers, and more. Stay focused on building great data-driven applications.

Learn More

Top comments (0)

AWS Industries LIVE! Stream

Watch AWS Industries LIVE!

Discover how cloud technology is solving real-world problems on Industries LIVE!

Learn More

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, cherished by the supportive DEV Community. Coders of every background are encouraged to bring their perspectives and bolster our collective wisdom.

A sincere “thank you” often brightens someone’s day—share yours in the comments below!

On DEV, the act of sharing knowledge eases our journey and forges stronger community ties. Found value in this? A quick thank-you to the author can make a world of difference.

Okay