mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #4185 from overleaf/ae-react-devtool-toggle
Fix React DevTools enable/disable toggle GitOrigin-RevId: 505e948af96b9ecc658b5e809dce98a5e72dca0f
This commit is contained in:
parent
05e427624b
commit
669bec323c
1 changed files with 5 additions and 7 deletions
|
@ -18,13 +18,11 @@ module.exports = merge(base, {
|
|||
}),
|
||||
|
||||
// Disable React DevTools if DISABLE_REACT_DEVTOOLS is set to "true"
|
||||
new webpack.DefinePlugin({
|
||||
__REACT_DEVTOOLS_GLOBAL_HOOK__:
|
||||
process.env.DISABLE_REACT_DEVTOOLS === 'true'
|
||||
? '({ isDisabled: true })'
|
||||
: undefined,
|
||||
}),
|
||||
],
|
||||
process.env.DISABLE_REACT_DEVTOOLS === 'true' &&
|
||||
new webpack.DefinePlugin({
|
||||
__REACT_DEVTOOLS_GLOBAL_HOOK__: '({ isDisabled: true })',
|
||||
}),
|
||||
].filter(Boolean),
|
||||
|
||||
devServer: {
|
||||
// Expose dev server at www.dev-overleaf.com
|
||||
|
|
Loading…
Reference in a new issue