1.0.0 • Published 2 years ago

vite-plugin-devtools-outline v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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.

1.0.0

2 years ago

0.0.1

2 years ago

0.1.0

2 years ago