From dfaf74aac5f4566346c829beb0f577adeea626f4 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Mon, 28 Sep 2020 05:57:10 +0200 Subject: [PATCH] Supress webpack asset size warning Set threshold for webpack's asset size warning to 2 MB due to Ant Design being large. --- packages/master/webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/master/webpack.config.js b/packages/master/webpack.config.js index 4e2dc702..0232ea94 100644 --- a/packages/master/webpack.config.js +++ b/packages/master/webpack.config.js @@ -14,6 +14,10 @@ module.exports = (env = {}) => ({ filename: "bundle.js", path: path.resolve(__dirname, "static"), }, + performance: { + maxAssetSize: 2**21, + maxEntrypointSize: 2**21, + }, plugins: [ new CleanWebpackPlugin(), new webpack.DefinePlugin({