diff --git a/bin/cli-flags.js b/bin/cli-flags.js index bd1ac547b2..8cde80e212 100644 --- a/bin/cli-flags.js +++ b/bin/cli-flags.js @@ -101,13 +101,11 @@ module.exports = { type: "enum", values: ["none", "error", "warn", "info", "log", "verbose"], multiple: false, - description: - "Allows to specify options for client script in the browser or disable client script.", + description: "Allows to set log level in the browser.", path: "client.logging", }, ], - description: - "Allows to specify options for client script in the browser or disable client script.", + description: "Allows to set log level in the browser.", simpleType: "string", multiple: false, }, diff --git a/lib/options.json b/lib/options.json index 36080418b8..61c91a3642 100644 --- a/lib/options.json +++ b/lib/options.json @@ -74,7 +74,7 @@ }, "ClientLogging": { "enum": ["none", "error", "warn", "info", "log", "verbose"], - "decription": "Allows to set log level in the browser.", + "description": "Allows to set log level in the browser.", "link": "https://webpack.js.org/configuration/dev-server/#logging" }, "ClientOverlay": { diff --git a/test/__snapshots__/validate-options.test.js.snap.webpack4 b/test/__snapshots__/validate-options.test.js.snap.webpack4 index 208e889523..cf2e0defda 100644 --- a/test/__snapshots__/validate-options.test.js.snap.webpack4 +++ b/test/__snapshots__/validate-options.test.js.snap.webpack4 @@ -70,6 +70,7 @@ exports[`options validate should throw an error on the "client" option with '{"l "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client.logging should be one of these: \\"none\\" | \\"error\\" | \\"warn\\" | \\"info\\" | \\"log\\" | \\"verbose\\" + -> Allows to set log level in the browser. -> Read more at https://webpack.js.org/configuration/dev-server/#logging" `; @@ -77,6 +78,7 @@ exports[`options validate should throw an error on the "client" option with '{"l "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client.logging should be one of these: \\"none\\" | \\"error\\" | \\"warn\\" | \\"info\\" | \\"log\\" | \\"verbose\\" + -> Allows to set log level in the browser. -> Read more at https://webpack.js.org/configuration/dev-server/#logging" `; diff --git a/test/__snapshots__/validate-options.test.js.snap.webpack5 b/test/__snapshots__/validate-options.test.js.snap.webpack5 index 208e889523..cf2e0defda 100644 --- a/test/__snapshots__/validate-options.test.js.snap.webpack5 +++ b/test/__snapshots__/validate-options.test.js.snap.webpack5 @@ -70,6 +70,7 @@ exports[`options validate should throw an error on the "client" option with '{"l "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client.logging should be one of these: \\"none\\" | \\"error\\" | \\"warn\\" | \\"info\\" | \\"log\\" | \\"verbose\\" + -> Allows to set log level in the browser. -> Read more at https://webpack.js.org/configuration/dev-server/#logging" `; @@ -77,6 +78,7 @@ exports[`options validate should throw an error on the "client" option with '{"l "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.client.logging should be one of these: \\"none\\" | \\"error\\" | \\"warn\\" | \\"info\\" | \\"log\\" | \\"verbose\\" + -> Allows to set log level in the browser. -> Read more at https://webpack.js.org/configuration/dev-server/#logging" `; diff --git a/test/cli/__snapshots__/basic.test.js.snap.webpack4 b/test/cli/__snapshots__/basic.test.js.snap.webpack4 index c17c8fda08..75f870515d 100644 --- a/test/cli/__snapshots__/basic.test.js.snap.webpack4 +++ b/test/cli/__snapshots__/basic.test.js.snap.webpack4 @@ -60,7 +60,7 @@ Options: --no-bonjour Disallows to broadcasts dev server via ZeroConf networking on start. --client-web-socket-transport Allows to set custom web socket transport to communicate with dev server. --no-client Negative 'client' option. - --client-logging Allows to specify options for client script in the browser or disable client script. + --client-logging Allows to set log level in the browser. --client-progress Prints compilation progress in percentage in the browser. --no-client-progress Does not print compilation progress in percentage in the browser. --client-overlay Enables a full-screen overlay in the browser when there are compiler errors or warnings. diff --git a/test/cli/__snapshots__/basic.test.js.snap.webpack5 b/test/cli/__snapshots__/basic.test.js.snap.webpack5 index 3b0387a8bb..bb11c322eb 100644 --- a/test/cli/__snapshots__/basic.test.js.snap.webpack5 +++ b/test/cli/__snapshots__/basic.test.js.snap.webpack5 @@ -60,7 +60,7 @@ Options: --bonjour Allows to broadcasts dev server via ZeroConf networking on start. --no-bonjour Negative 'bonjour' option. --no-client Negative 'client' option. - --client-logging Allows to specify options for client script in the browser or disable client script. + --client-logging Allows to set log level in the browser. --client-overlay Enables a full-screen overlay in the browser when there are compiler errors or warnings. --no-client-overlay Negative 'client-overlay' option. --client-overlay-errors Enables a full-screen overlay in the browser when there are compiler errors.