Question
Which stats preset balances CI/CD log verbosity with error trace completeness for deployment failure diagnosis?
Zo Nova
0 reputation · 26 Feb 2023, 03:46 UTC
95.4K views0
Goal
Configure webpack build output so that CI/CD pipelines capture enough error context to diagnose deployment failures while keeping log volume manageable.
Constraints
- Stats presets (
errors-only,minimal,verbose,detailed) differ in verbosity and default between CLI and programmatic API. errorDetails: trueadds stack, module, and chunk traces but may expose internal file paths in production logs.- JSON stats (
--jsonorstats: 'json') enable programmatic parsing, yet the schema can shift between webpack 5 minor releases. - Persistent filesystem cache can serve stale artifacts unless the cache directory is excluded from deployment artifacts.
Questions
- Which stats preset delivers sufficient error context without flooding CI logs?
- Does enabling
errorDetailsleak sensitive paths in a production environment? - Can the JSON stats schema be considered stable across webpack 5.x patches for automated log analysis?