Skip to content

Webpack config stats has no effect #204

Closed
@svengau

Description

@svengau

Hi,

the stats config in webpack could not be configured, because it's hardcoded in the code:


console.log(stats.toString({ color: true }));

For example, I would like to remove some noisy warnings with the following config, but it's not possible:

  stats: {
    warningsFilter: [
      /Critical dependency: the request of a dependency is an expression/,
      /Critical dependency: require function is used in a way in which dependencies cannot be statically extracted/
    ],
  },

Thanks.

[edit]: Here is the list of all parameters of the toString(...) function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions