Make `--log` Configurable via `vite.config.ts`

Abierto
#2,914 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@wan9chi ya está trabajando en esto.

Desde el 7/10/2026.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
cli, tooling

Línea de trabajo

Start by tracing how vp run currently reads the --log option and where vite.config.ts configuration is loaded. Check the relevant tests for the existing log modes; done means the new run.log setting supports labeled, grouped, and interleaved and controls task output as proposed.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

pending triage
Description

Right now, the only way to get prefixes added to the task output to differentiate tasks is via the --log argument argument in the vp run command.

This is annoying when trying to keep your package.json scripts simple and also splits your behavior configuration across these arguments and you main vite.config.ts.

Suggested solution

I suggest making that configurable via vite.config.ts in a new run -> log field of the configuration.

import { defineConfig } from "vite-plus";

export default defineConfig({
  run: {
    // New `log` field controlling what is currently set via `--log`
    log: "labeled" // or "grouped" or "interleaved"
  },
});
Alternative

No response

Additional context

No response

Validations
  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.
Lenguaje dominante
TypeScript
Estrellas
6.6k
Forks
303
Merge medio
1 d 4 h
PR fusionados (30 d)
224

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de voidzero-dev/vite-plus

Todos los issues de voidzero-dev/vite-plus

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.