1.0.1 • Published 1 year ago

vite-plugin-vue-component-path v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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
}