Webpack production build - remove logs

I’m attempting to remove all of the socket logs on local. I’m using webpack dev server and for some reason, webpack.DefinePlugin isn’t adding the environment variable “NODE_ENV=production” to the build.

I’m able to add the NODE_ENV via the call script:

yarn build && cross-env NODE_ENV=pr START_HOT=1 IS_DEV=1 webpack-dev-server --config ./webpack.config.js

The env variable NODE_ENV is set in the build, but I’m still seeing the ws logs.

Does this have to be added via definePlugin?

Thanks