Description
Right now there is no documented way to set a custom cache dir for the Vite+ cache folder. The undocumented version is via an env variable.
At the same time, Vite itself has a cachedDir option that could be used (or mistaken by users as the desired option)
Suggested solution
- Add a dedicated
run.cacheDir option
- If it is not set, use
<top-level cacheDir>/task-cache (Vite's option)
- If that isn't set either, use the default
node_modules/.vite/task-cache dir
To make it performant, this probably needs changes in Vite Task itself
Alternative
No response
Additional context
No response
Validations
Description
Right now there is no documented way to set a custom cache dir for the Vite+ cache folder. The undocumented version is via an env variable.
At the same time, Vite itself has a
cachedDiroption that could be used (or mistaken by users as the desired option)Suggested solution
run.cacheDiroption<top-level cacheDir>/task-cache(Vite's option)node_modules/.vite/task-cachedirTo make it performant, this probably needs changes in Vite Task itself
Alternative
No response
Additional context
No response
Validations