-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Allow configuring vite.cacheDir #27627
Copy link
Copy link
Closed
Labels
Description
Describe the feature
Presently, configuring vite.cacheDir (docs) is not possible as it is hard coded to node_modules/.cache/vite in https://github.com/nuxt/nuxt/blob/main/packages/vite/src/client.ts#L121 and https://github.com/nuxt/nuxt/blob/main/packages/vite/src/server.ts#L74.
I'll be making a PR, but as per the contribution guide, here is an associated issue.
Fore more context about why I would like this:
I am running instances of nuxt dev simultaneously in one directory. This is the only configuration I cannot currently make to prevent them from stepping on each others toes with build/cache files.
Additional information
- Would you be willing to help implement this feature?
- Could this feature be implemented as a module?
Final checks
- Read the contribution guide.
- Check existing discussions and issues.
Reactions are currently unavailable