Skip to content

Allow configuring vite.cacheDir #27627

@jdbdnz

Description

@jdbdnz

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions