Does Storybook + Vite do incremental build? #33327
Replies: 1 comment
-
|
Hi @bhavaniravi! I'm Dosu and I’m helping the storybook team. Storybook with Vite does not support persistent incremental builds or caching between runs like Webpack's Vite does persist a cache for dependency optimization (used for faster dev server startup and HMR), and Storybook stores this cache in The To optimize build times, especially in Docker or large projects, you can:
If you want specific config examples or further tuning tips, let me know your setup details! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm new to the JS ecosystem, and I'm a backend person, so maybe this question is too basic.
I recently started exploring Storybook with webpack, and it includes
fscache, which caches some information between builds, so subsequent changes and their builds are much faster.Is there something similar in Vite?
I have explored
--watch, but that is not a significant improvement; maybe I'm doing something wrong.Also, Storybook doesn't support watch properly, maybe I'm wrong about this too.
The problem I see is that a build that takes 8s on my laptop (M4, 32GB) is taking 1.5 mins on a Docker container.r
Tried everything recommended by every AI out there, no luck.
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions