From 49be8938893e42452b3ba9883bb78d3e45a5ff3f Mon Sep 17 00:00:00 2001 From: Viktor Tsvetkov <142901247+vtsvetkov-splunk@users.noreply.github.com> Date: Mon, 29 Apr 2024 20:06:18 +0200 Subject: [PATCH] chore(webpack): disable throwing warnings about lack of licenses (#1160) --- ui/webpack.config.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/webpack.config.js b/ui/webpack.config.js index 7fe39d02e..4bdf95022 100644 --- a/ui/webpack.config.js +++ b/ui/webpack.config.js @@ -36,21 +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: { - warnings: (warning) => - !warning.message.includes( - 'license-webpack-plugin: could not find any license file for styled-components' - ), - }, - }, proxy: [ { target: proxyTargetUrl,