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

Aberta
#2,914 0 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@wan9chi já está trabalhando nisso.

Desde 7/10/2026.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
58/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript
Domínio
cli, tooling

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
TypeScript
Estrelas
6.6k
Forks
303
Merge médio
1d 5h
PRs com merge (30d)
212

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de voidzero-dev/vite-plus

Todas as issues de voidzero-dev/vite-plus

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.