diff options
| author | mokha <mokha@cisco.com> | 2018-09-29 11:04:59 -0600 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-09-29 11:04:59 -0600 |
| commit | 1ecb57bb616870f46c8d46bc192dfd87001ede0a (patch) | |
| tree | 1c67288894305aad436cccece0e3d43f5aa11347 | |
| parent | 51c53ad8c30817562246abf5d67e0d109d0667b9 (diff) | |
set a build performance budget
* https://survivejs.com/webpack/optimizing/build-analysis/
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | webpack.config.js | 7 |
2 files changed, 8 insertions, 0 deletions
@@ -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 @@ -23,6 +23,13 @@ const commonConfig = merge([ const productionConfig = merge([ { + performance: { + hints: "warning", + maxEntrypointSize: 50000, + maxAssetSize: 450000, + } + }, + { output: { chunkFilename: "[name].[chunkhash:4].js", filename: "[name].[chunkhash:4].js", |
