From 2a81ad2df1269bdc51269b855d240a21e40d28bf Mon Sep 17 00:00:00 2001 From: Stephen Niedzielski Date: Fri, 17 May 2019 05:42:34 -0600 Subject: [PATCH] fix(stats): add errors-warnings preset (#1895) Add the new errors-warnings preset shipped in v4.31.0. Keeping webpack-dev-server presets supported consistent with Webpack will make both tools easier to use. https://github.com/webpack/webpack/releases/tag/v4.31.0 https://github.com/webpack/webpack/pull/8919/files#diff-baf371f5446dc9bc4b41022587e05b48 --- lib/options.json | 9 ++++++++- test/options.test.js | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/options.json b/lib/options.json index 24d29407dc..0392953d43 100644 --- a/lib/options.json +++ b/lib/options.json @@ -325,7 +325,14 @@ "type": "boolean" }, { - "enum": ["none", "errors-only", "minimal", "normal", "verbose"] + "enum": [ + "none", + "errors-only", + "errors-warnings", + "minimal", + "normal", + "verbose" + ] } ] }, diff --git a/test/options.test.js b/test/options.test.js index e659ffcddd..b512216f4a 100644 --- a/test/options.test.js +++ b/test/options.test.js @@ -359,6 +359,7 @@ describe('options', () => { {}, 'none', 'errors-only', + 'errors-warnings', 'minimal', 'normal', 'verbose',