From a505b13b713cc726deca61dd646545e420d52aae Mon Sep 17 00:00:00 2001 From: Viktor Tsvetkov <142901247+vtsvetkov-splunk@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:51:28 +0200 Subject: [PATCH 1/2] chore(webpack-dev-server): disable throwing warnings to overlay --- ui/webpack.config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ui/webpack.config.js b/ui/webpack.config.js index 7fe39d02e..753d2bd64 100644 --- a/ui/webpack.config.js +++ b/ui/webpack.config.js @@ -45,10 +45,9 @@ module.exports = merge(baseConfig, { hot: false, client: { overlay: { - warnings: (warning) => - !warning.message.includes( - 'license-webpack-plugin: could not find any license file for styled-components' - ), + errors: true, + warnings: false, // it throws warnings about lack of package licenses + runtimeErrors: true, }, }, proxy: [ From eb6c21d083490096acef91886d30a2ca2f180da8 Mon Sep 17 00:00:00 2001 From: Viktor Tsvetkov <142901247+vtsvetkov-splunk@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:53:47 +0200 Subject: [PATCH 2/2] hah --- ui/webpack.config.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ui/webpack.config.js b/ui/webpack.config.js index 753d2bd64..4bdf95022 100644 --- a/ui/webpack.config.js +++ b/ui/webpack.config.js @@ -36,20 +36,21 @@ module.exports = merge(baseConfig, { }, ], }, - plugins: [new LicenseWebpackPlugin(), new ForkTsCheckerWebpackPlugin()], + plugins: [ + new LicenseWebpackPlugin({ + stats: { + warnings: false, + errors: true, + }, + }), + new ForkTsCheckerWebpackPlugin(), + ], devtool: 'source-map', resolve: { fallback: { querystring: require.resolve('querystring-es3') }, }, devServer: { hot: false, - client: { - overlay: { - errors: true, - warnings: false, // it throws warnings about lack of package licenses - runtimeErrors: true, - }, - }, proxy: [ { target: proxyTargetUrl,