vite-dev-logs
Version:
Creates a Vite plugin that logs only in development mode, for AI agents.
20 lines (19 loc) • 534 B
TypeScript
import type { Plugin } from 'vite';
interface ViteDevLoggerOptions {
/**
* The URL path where the logs will be served. defaults to `/dev-logger`.
*/
url?: string;
/**
* The folder where logs will be stored.
* defaults to 'logs'.
*/
outputFolder?: string;
/**
* The name of the output file where logs will be stored.
* defaults to 'dev-log'.
*/
outputFileName?: string;
}
export default function viteDevLogger(options?: Partial<ViteDevLoggerOptions>): Plugin;
export {};