Skip to content

q1uxu/vite-plugin-vue-component-path

Repository files navigation

vite-plugin-vue-component-path

A vite plugin that show where the vue component path is on browser devtools.

Screenshot

Install

npm i -D vite-plugin-vue-component-path
# yarn add -D vite-plugin-vue-component-path
# pnpm i -D vite-plugin-vue-component-path

Usage

// vite.config.js
import vue from "@vitejs/plugin-vue";
import vueComponentPath from "vite-plugin-vue-component-path";

export default defineConfig({
  plugins: [vue(), vueComponentPath()],
});

Options

export interface Options {
  include?: FilterPattern
  exclude?: FilterPattern
  /**
   * @description The attribute name of the DOM to show the component path
   * @default 'vue-component-path'
   */
  attributeName?: string
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published