Define the proper NODE_ENV environment during running the webpack. Using the webpack.DefinePlugin during the development build too, not just in production build.
Fixes #2596. Also - passing option 'warning: false' for UglifyJsPlugin, which will not show warning messages on the console during the production build. Branch ------ master Details ------- https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=2945b3fe93337174cd423367453621049980a0ae Author: Surinder Kumar <surinder.ku...@enterprisedb.com> Modified Files -------------- web/webpack.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)