fix(@angular-devkit/build-angular): add fallback for non defined stats options

A fallback value for stats options when an option is not defined. It has precedence over local webpack defaults.
This commit is contained in:
Alan Agius 2021-01-28 12:26:26 +01:00
parent 9a6541f882
commit 60b2cb7f10

View File

@ -10,10 +10,12 @@ import { WebpackConfigOptions } from '../../utils/build-options';
import { isWebpackFiveOrHigher } from '../../utils/webpack-version';
const webpackOutputOptions = {
all: false, // Fallback value for stats options when an option is not defined. It has precedence over local webpack defaults.
colors: true,
hash: true, // required by custom stat output
timings: true, // required by custom stat output
chunks: true, // required by custom stat output
builtAt: true, // required by custom stat output
chunkModules: false,
children: false, // listing all children is very noisy in AOT and hides warnings/errors
modules: false,