voidzero-dev / voidzero-dev/vite-plus
Support cache config for built-in vp build and vp pack
- 主要语言
- Rust
- 星标
- 5.8k
- 派生
- 262
- 平均合并
- 1 天 34 分钟
- 30 天内合并 PR
- 135
描述
https://github.com/voidzero-dev/vite-plus/pull/1992#discussion_r3503183576
## Problem
Today, Vite Task cache applies when a build is run as a task, for example `vpr build` or `vp run build`. A user can get cache hits from that task path, but direct built-in commands like `vp build` and `vp pack` do not use the task cache.
That makes the behavior hard to explain. `vpr build` can hit cache while `vp build` always runs, even though both may execute the same build command.
## Possible direction
Add a config option that lets projects enable caching for built-in `vp build` and `vp pack` commands. This would make the first-party command path and the task-runner path behave more consistently.
贡献指南
调研方向
Start by comparing the built-in `vp build` and `vp pack` command paths with task-based `vpr build` and `vp run build`, then read the cache behavior discussed in PR 1992. Identify where project configuration is loaded and where task caching is applied. Done means a documented config option enables cache hits for both built-in commands and makes their behavior consistent with the task paths.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust
- 领域
- build-system, cli, tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100