vite-plugin-basic-ssl icon indicating copy to clipboard operation
vite-plugin-basic-ssl copied to clipboard

cacheDir path is missing the root path

Open cedeber opened this issue 2 years ago • 1 comments

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.

cedeber avatar Jul 20 '22 08:07 cedeber

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

PengBoUESTC avatar Sep 05 '22 13:09 PengBoUESTC