We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4c7877 commit b14c060Copy full SHA for b14c060
webpack.config.js
@@ -29,6 +29,10 @@ const plugins = [
29
process.env.REACT_APP_DISABLE_SOCKET || 'true'
30
),
31
},
32
+ // disable React DevTools in production; see https://github.com/facebook/react/pull/11448
33
+ ...(process.env.NODE_ENV === 'production'
34
+ ? { __REACT_DEVTOOLS_GLOBAL_HOOK__: '({ isDisabled: true })' }
35
+ : {}),
36
}),
37
new HtmlWebpackPlugin({
38
title: process.env.TITLE || 'PCDC Data Portal',
0 commit comments