diff --git a/components/log-viewer-webui/client/webpack.config.js b/components/log-viewer-webui/client/webpack.config.js index 54df423b7..86f1be080 100644 --- a/components/log-viewer-webui/client/webpack.config.js +++ b/components/log-viewer-webui/client/webpack.config.js @@ -74,11 +74,6 @@ const config = { }; export default () => { - if (isProduction) { - config.mode = "production"; - } else { - config.mode = "development"; - } - + config.mode = isProduction ? "production" : "development"; return config; };