From 0a0e649518a92ac4acf46b4802f943e67c9d38a6 Mon Sep 17 00:00:00 2001 From: Hugh O'Brien Date: Mon, 13 Jul 2020 12:24:43 +0100 Subject: [PATCH] Merge pull request #2986 from overleaf/jpa-silence-react [misc] silence react messages in the dev-tools console GitOrigin-RevId: 7ef4d783d0db55fb3fec6d15b9c76191cd49dd6c --- services/web/webpack.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/web/webpack.config.js b/services/web/webpack.config.js index 80193ae00e..89c166f187 100644 --- a/services/web/webpack.config.js +++ b/services/web/webpack.config.js @@ -232,6 +232,11 @@ module.exports = { writeToFileEmit: true }), + // Silence react messages in the dev-tools console + new webpack.DefinePlugin({ + __REACT_DEVTOOLS_GLOBAL_HOOK__: '({ isDisabled: true })' + }), + // Prevent moment from loading (very large) locale files that aren't used new webpack.IgnorePlugin({ resourceRegExp: /^\.\/locale$/,