vite-plugin-devtools-outline
v1.0.0
Published
A Vite plugin that adds a shortcut to show every element outline
Downloads
29
Readme
Vite Plugin Devtools Outline
A dead-simple Vite plugin that adds a hotkey to toggle red outlines around every element during dev only.
During build, this module will be an empty string, making it dev-only.
Usage
Install the package
npm
npm i -D vite-plugin-devtools-outline
pnpm
pnpm i -D vite-plugin-devtools-outline
In vite.config.ts
import { presetColumns } from "vite-plugin-devtools-outline";
export default defineConfig({
// ...
plugins: [devtoolsOutline()],
// ...
});
And in your main.ts
or anywhere else in your code:
import "virtual:devtools-outline";
Then you can use ctrl+O or shift+O to toggle outlines.