mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01: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:
@@ -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$/,
|
||||
|
||||
Reference in New Issue
Block a user