The idea: ``` client: { errors?: boolean | (error: Error) => boolean warnings?: boolean | (warn: unknown) => boolean runtimeErrors?: boolean | (error: Error) => boolean } ``` But let's implement boolean firstly, so you can disable it if you need, and then we can look at serilization _Originally posted by @alexander-akait in https://github.com/webpack/webpack-dev-server/issues/4771#issuecomment-1472913070_