-
Notifications
You must be signed in to change notification settings - Fork 106
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
Default Cache Directory Conflict Resolution #223
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oooo, good point. I'm on board with this. Or, in my mind, even better would be to use node_modules/.cache/.vite-storybook
, since I think .cache
is a pretty common folder to keep caches in, and makes it easier to clear everything at once. But that's just an idea.
I guess that's a better approach yet Vite itself has it's own |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Shouldn’t this also be changed in |
Good catch, yes I think that would be good. Would you like to open a pr? |
In storybookjs#223 the vite cache directory for production build was set to a custom location, in order not to conflict with a vite application in the same project. This commit also applies that configuration for the development server.
In #223 the vite cache directory for production build was set to a custom location, in order not to conflict with a vite application in the same project. This commit also applies that configuration for the development server.
There is a problem starting Vite app and Storybook under storybook-builder-vite because they share the same cache directory
node_modules/.vite/
unless explicitly reassigning.This PR retargets storybook-builder-vite's cache directory into a different one to not affect the app it's running along with.