vite-plugin-devtools-outline

1.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i vite-plugin-devtools-outline

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

3.18 kB

Total Files

5

Last publish

Collaborators

  • leoboyerbx