Replies: 1 comment 2 replies
-
|
@mkmmnn We have https://webpack.js.org/configuration/cache/#cachereadonly, and |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to only use filesystem caching for builds that aren't re-builds?
I recently upgraded a project to use Webpack 5.95.0 and am running into performance issues with my development builds. Without filesystem caching on, build times are significantly (>50% slower) than on Webpack 4. Turning on filesystem caching alleviates some of this pain by reducing build times when the cache is warm such that the average build time is reasonable.
However, in development (watch mode on), I'm observing higher recompile times when filesystem caching is turned on. I'm suspecting this is because time is spent dealing with the filesystem caching, though I'm not sure.
I'd like to keep benefitting from the filesystem cache on full builds, but I want to avoid writing or reading from the cache in watch mode. Then just write to the cache when shutting down webpack. Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions