Webpack Persistent Caching by Default in Gatsby #31525
Unanswered
pragmaticpat
asked this question in
Umbrella Discussions
Replies: 1 comment 1 reply
-
Quick update everyone, this will be set as default behavior in 3.8 instead of 3.7. Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When we released Gatsby v3, we updated Webpack to version 5. Initially, we did not enable Persistent Caching by default, and left this as purely opt-in to limit the number of changes we implemented with v3.
Given the substantial benefit of Webpack 5's caching, and the corresponding stability we've observed from the volume of machines that have opted into this feature, we're now going to enable persistent caching as a default behavior in Gatsby.
When is this happening?
This change will occur as part of Gatsby 3.7, which is slated for June 8, 2021
What does that mean for you, the developers using Gatsby?
gatsby clean
, for example)How can I try this out in advance?
FAST_DEV
(which internally also enables Webpack persistent caching) orPRESERVE_WEBPACK_CACHE
viagatsby-config.js
What do you do if you find an issue?
Please file an issue following our standard issue reporting process, and label the issue with "topic:webpack/babel"
Beta Was this translation helpful? Give feedback.
All reactions