Vite-plugin-turbo-console is a Vite plugin for enhancing console.log().
Its main features include:
🔥 Features
- Output console.log content highlighted according to file type.
- Jump to editor from console by simple click.
🎥 Screen Recording
📦 Install
# npm
npm install -D vite-plugin-turbo-console
# yarn
yarn add -D vite-plugin-turbo-console
# pnpm
pnpm i -D vite-plugin-turbo-console
🦄 Usage
Vite
vite.config.ts
import { defineConfig } from "vite";
import TurboConsole from "vite-plugin-turbo-console";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
TurboConsole({
/* options here */
})
],
});
Nuxt
nuxt.config.ts
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'vite-plugin-turbo-console/nuxt'
],
turboConsole: {
/* options here */
}
})
Check the more information on GitHub
Welcome to use and feedback:)
Top comments (0)