Closed tomasz-sodzawiczny closed 4 years ago
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Better open issue in find-cache-dir
repo
@evilebottnawi I was thinking about it, but doesn't seem to be a good idea.
It would also modify behaviour of other libraries that use it and it would expose a configuration API that even the developers wouldn't know about.
Having a MY_PROJECT_CACHE_DIR
variable without documenting it in a project it would be very confusing.
@tomasz-sodzawiczny a lot of loaders/plugins use this package for cache, it will require changing their code, and still some loader will be use other cache directory internally (vendor loaders), so better discuss about this feature in find-cache-dir
repo
Implemented in find-cache-dir
This PR contains a:
Motivation / Use-Case
Adds option to control the
cacheDirectory
withCACHE_LOADER_CACHE_DIR
. Useful for keeping the default for local dev environment and controlling the value on CI/CD.The
cacheDirectory
option still takes precedence if specified.https://github.com/webpack-contrib/cache-loader/issues/91
Breaking Changes
Only changes behaviour if someone has the
CACHE_LOADER_CACHE_DIR
variable set in their environment - very unlikely it's a breaking change.Additional Info
To do