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

オープン
#2,914 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@wan9chi がすでに取り組んでいます。

2026年10月7日 から。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
cli, tooling

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
TypeScript
スター
6.6k
フォーク
303
平均マージ
1日 4時間
マージ済み PR(30日)
224

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

voidzero-dev/vite-plus のほかの issue

voidzero-dev/vite-plus の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。