Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cacheDir path is missing the root path #3

Closed
cedeber opened this issue Jul 20, 2022 · 1 comment
Closed

cacheDir path is missing the root path #3

cedeber opened this issue Jul 20, 2022 · 1 comment

Comments

@cedeber
Copy link

cedeber commented Jul 20, 2022

Hello. Looks like the cacheDir option in Vite config file is broken. I feel like the root option has been forgotten.

{
  root: "./packages/application",
  cacheDir: ".cache"
}

It does save the certificate into /.cache instead of ./packages/application/.cache.
Thanks.

@PengBoUESTC
Copy link
Contributor

Hello. Looks like the cacheDir option in Vite config file is broken. I feel like the root option has been forgotten.

{
  root: "./packages/application",
  cacheDir: ".cache"
}

It does save the certificate into /.cache instead of ./packages/application/.cache. Thanks.
this plugin compute cacheDir itself which is different from the rule of vite, I think the hook used in this plugin is a little early

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants