You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that I often need just see warnings and errors since during rapid development I don't really need to see the modules stats. So I tend to write the same code every time and it would be nice to be able to just provide an "errors-warnings" preset to save space and improve readability.
What kind of change does this PR introduce?
Extension to the existing stats preset.
Did you add tests for your changes?
Tests added.
Does this PR introduce a breaking change?
No, this is a just an extension which will not break anything
What needs to be documented once your changes are merged?
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.stats should be one of these:
object { all?, assets?, assetsSort?, builtAt?, cached?, cachedAssets?, children?, chunkGroups?, chunkModules?, chunkOrigins?, chunks?, chunksSort?, colors?, context?, depth?, entrypoints?, env?, errorDetails?, errors?, exclude?, excludeAssets?, excludeModules?, hash?, maxModules?, moduleAssets?, moduleTrace?, modules?, modulesSort?, nestedModules?, optimizationBailout?, outputPath?, performance?, providedExports?, publicPath?, reasons?, source?, timings?, usedExports?, version?, warnings?, warningsFilter? } | boolean | "none" | "errors-only" | "minimal" | "normal" | "detailed" | "verbose"
-> Used by the webpack CLI program to pass stats options.
Details:
* configuration.stats should be an object.
* configuration.stats should be a boolean.
* configuration.stats should be one of these:
"none" | "errors-only" | "minimal" | "normal" | "detailed" | "verbose"
at webpack
A pull request by @vincentrodriguez was merged and maintainers requested a documentation change.
See pull request: webpack/webpack#8919
I've noticed that I often need just see warnings and errors since during rapid development I don't really need to see the modules stats. So I tend to write the same code every time and it would be nice to be able to just provide an "errors-warnings" preset to save space and improve readability.
What kind of change does this PR introduce?
Extension to the existing stats preset.
Did you add tests for your changes?
Tests added.
Does this PR introduce a breaking change?
No, this is a just an extension which will not break anything
What needs to be documented once your changes are merged?
The following page will need to be updated with additional stats preset option: https://webpack.js.org/configuration/stats/
The text was updated successfully, but these errors were encountered: