From 1ecb57bb616870f46c8d46bc192dfd87001ede0a Mon Sep 17 00:00:00 2001 From: mokha Date: Sat, 29 Sep 2018 11:04:59 -0600 Subject: set a build performance budget * https://survivejs.com/webpack/optimizing/build-analysis/ --- .gitignore | 1 + webpack.config.js | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index f06235c..f7baf9f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules dist +stats.json diff --git a/webpack.config.js b/webpack.config.js index 047b1f6..7355b05 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -22,6 +22,13 @@ const commonConfig = merge([ ]); const productionConfig = merge([ + { + performance: { + hints: "warning", + maxEntrypointSize: 50000, + maxAssetSize: 450000, + } + }, { output: { chunkFilename: "[name].[chunkhash:4].js", -- cgit v1.2.3