mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #2986 from overleaf/jpa-silence-react
[misc] silence react messages in the dev-tools console GitOrigin-RevId: 7ef4d783d0db55fb3fec6d15b9c76191cd49dd6c
This commit is contained in:
parent
ff2ee573bb
commit
0a0e649518
1 changed files with 5 additions and 0 deletions
|
@ -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$/,
|
||||
|
|
Loading…
Reference in a new issue