-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Storybook does not respect cacheDirectory for cache location #4665
Comments
AFAIK this |
I see. Is there any way to specify different location for this folder? |
Probably we can provide an |
How about adding this to config.js? |
config.js is loaded to client, and cache dir should be provided to babel 🤷♂️ But it will be possible with #4169 |
@igor-dv this is not related to babel -- see my comment above. this is about version checks, so I think an environment variable or config option would be fine. @pkuczynski can you explain why you want to put this directory in a different location? (just for my curiosity) |
For me I don't want to add a new line to .gitignore for every module that needs a cache folder. So if there's an easy way to define this globally, or in config, I'd prefer to supply a path that is already ignored. |
Same thing in my case. I already ignore |
I have Babel caching enabled but rely on the default path of |
Yeah, |
Fixes #4665: set correct cache directory path
Thanks @alex-fournier ! |
Fixes #4665: set correct cache directory path
This just went out in https://github.com/storybooks/storybook/releases/tag/v4.0.9 Great work @alex-fournier! |
https://babeljs.io/docs/en/babel-register#babel_cache_path= It would be good if sb supports customizing the cache path |
As a follow-up to this, I am unifying the cache directory path for our tools and storybook is the last hard-headed one that seemingly cannot be persuaded to use it (as seen in Could you please consider introducing some solution for this to be configurable? |
@kubijo would you be open to creating a new issue for that and possibly a PR, moving storybook to use
storybook/code/lib/core-common/src/utils/resolve-path-in-sb-cache.ts Lines 18 to 22 in 441338a
There might be more references.. |
Describe the bug
Storybook creates
.cache
folder in the root of my project despite my webpack config specifies a different location forcacheDirectory
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Cache folder is created in the location specified by
cacheDirectory
Code snippets
Webpack config:
System:
The text was updated successfully, but these errors were encountered: