Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document webpack change: Preset option for errors & warnings only #3002

Closed
webpack-bot opened this issue May 9, 2019 · 1 comment · Fixed by #3003
Closed

Document webpack change: Preset option for errors & warnings only #3002

webpack-bot opened this issue May 9, 2019 · 1 comment · Fixed by #3003

Comments

@webpack-bot
Copy link

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/

@ishpartko
Copy link

ishpartko commented May 23, 2019

Hi all,

got error

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 

when pass stats: "errors-warnings" in my config

"webpack": "^4.32.2",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants