From f5d475307f9b87ac93f0e8fe7f52a1102985e8f7 Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 28 May 2020 11:28:58 +0800 Subject: [PATCH] chore: optimize output log --- packages/plugin-react-app/src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/plugin-react-app/src/index.js b/packages/plugin-react-app/src/index.js index 3c9d6f134d..b391336d82 100644 --- a/packages/plugin-react-app/src/index.js +++ b/packages/plugin-react-app/src/index.js @@ -64,6 +64,9 @@ module.exports = ({ const mode = command === 'start' ? 'development' : 'production'; const config = getWebpackConfig(mode); + // 1M = 1024 KB = 1048576 B + config.performance.maxAssetSize(1048576).maxEntrypointSize(1048576); + // setup DefinePlugin, HtmlWebpackPlugin and CopyWebpackPlugin out of onGetWebpackConfig // in case of registerUserConfig will be excute before onGetWebpackConfig