settings/production: Use webpack loader cache when not in debug mode
It prevents infinite reload of web application in browser when overriding swh-web sources in docker-compose environment and modifying js sources.
Migrated from D7505 (view on Phabricator)