Add config.cache example to webpack.local-config.js note#4446
Conversation
Codecov ReportBase: 88.55% // Head: 88.55% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #4446 +/- ##
=======================================
Coverage 88.55% 88.55%
=======================================
Files 283 283
Lines 25533 25533
Branches 6879 6879
=======================================
Hits 22611 22611
Misses 2715 2715
Partials 207 207 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
Thanks! Usually I keep the webpack server running in background all the time, so I don't get this first-build penalty often. It's also why I usually don't use this behavior of opening a tab automatically. Maybe one day we'll switch to some other tooling such as vite that's faster and has a working HMR setup... |
| config.cache = { | ||
| type: 'filesystem', | ||
| }; |
There was a problem hiding this comment.
Mmm I wonder if we should have this by default in our config actually. It looks like I considered doing this because I have an open tab on this configuration.
It would be good to get your feedback after a few days using this.
There was a problem hiding this comment.
I currently do plan to find out whether server config changes force a full rebuild, but what is next isn't yet set in stone.
There was a problem hiding this comment.
Modifying serverConfig.static roughly triples the cached webpack build time lol
I can't justify leaving my laptop on power and unattended, and hibernating it isn't 100% reliable. |
This pr adds a
config.cacheexample to thewebpack.local-config.jsnote in CONTRIBUTING.md, and so now both parameters are being used. This is probably the last change that I want to make to the note.Some side notes: