From 54fbed1812f54cb72f2eecba6d0d46f9daaee1da Mon Sep 17 00:00:00 2001 From: Ricky Lippmann Date: Tue, 1 Aug 2017 13:45:26 +0200 Subject: [PATCH 1/2] Add excludeAssets and excludeModules to stats --- content/configuration/stats.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/content/configuration/stats.md b/content/configuration/stats.md index 923815567dca..79da23dfabc7 100644 --- a/content/configuration/stats.md +++ b/content/configuration/stats.md @@ -66,8 +66,19 @@ stats: { errors: true, // Add details to errors (like resolving log) errorDetails: true, - // Exclude modules which match one of the given strings or regular expressions - exclude: [], + // Exclude assets from being displayed in stats + // This can be done with a String, a RegExp, a Function getting the assets name + // and returning a boolean or an Array of the above. + excludeAssets: "filter" | /filter/ | (assetName) => ... return true|false | + ["filter"] | [/filter/] | [(assetName) => ... return true|false], + // Exclude modules from being displayed in stats + // This can be done with a String, a RegExp, a Function getting the modules source + // and returning a boolean or an Array of the above. + excludeModules: "filter" | /filter/ | (moduleSource) => ... return true|false | + ["filter"] | [/filter/] | [(moduleSource) => ... return true|false], + // See excludeModules + exclude: "filter" | /filter/ | (moduleSource) => ... return true|false | + ["filter"] | [/filter/] | [(moduleSource) => ... return true|false], // Add the hash of the compilation hash: true, // Set the maximum number of modules to be shown From ef8c5f49197fbc4f7e0722df32496378c5253e10 Mon Sep 17 00:00:00 2001 From: Ricky Lippmann Date: Tue, 1 Aug 2017 13:49:51 +0200 Subject: [PATCH 2/2] add myself to contributers --- content/configuration/stats.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/configuration/stats.md b/content/configuration/stats.md index 79da23dfabc7..23728beccd92 100644 --- a/content/configuration/stats.md +++ b/content/configuration/stats.md @@ -5,6 +5,7 @@ contributors: - SpaceK33z - sallar - jungomi + - ldrick --- The `stats` option lets you precisely control what bundle information gets displayed. This can be a nice middle ground if you don't want to use `quiet` or `noInfo` because you want some bundle information, but not all of it.