voidzero-dev / voidzero-dev/vite-plus

Support cache config for built-in vp build and vp pack

Đang mở
#2,011 1 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
5.8k
Fork
262
Merge trung bình
1 ngày 34 phút
Pull request đã merge (30 ngày)
135

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rust
Lĩnh vực
build-system, cli, tooling
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.