mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 18:54:13 +08:00
ed611a63ae
The default for webpack is to keep cached values indefinitely. In discourse, this unbound memory usage causes node to raise an OOM error after 50-100 rebuilds in development mode (with source maps enabled). Setting maxGenerations=1 means that the cache will be cleaned up regularly. With this change, I see no discernible increase in memory after 150+ rebuilds. |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |