Skip to content

Commit c3b6690

Browse files
authored
fix: update description for --no-client (#4250)
1 parent 72cdfa4 commit c3b6690

File tree

7 files changed

+379
-392
lines changed

7 files changed

+379
-392
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Options:
9090
you are proxying dev server, by default is 'auto').
9191
--bonjour Allows to broadcasts dev server via ZeroConf networking on start.
9292
--no-bonjour Disallows to broadcasts dev server via ZeroConf networking on start.
93-
--no-client Negative 'client' option.
93+
--no-client Disables client script.
9494
--client-logging <value> Allows to set log level in the browser.
9595
--client-overlay Enables a full-screen overlay in the browser when there are compiler errors or warnings.
9696
--no-client-overlay Disables a full-screen overlay in the browser when there are compiler errors or warnings.

Diff for: bin/cli-flags.js

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ module.exports = {
6161
{
6262
description:
6363
"Allows to specify options for client script in the browser or disable client script.",
64+
negatedDescription: "Disables client script.",
6465
multiple: false,
6566
path: "client",
6667
type: "enum",

Diff for: lib/options.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@
4747
"link": "https://webpack.js.org/configuration/dev-server/#devserverclient",
4848
"anyOf": [
4949
{
50-
"enum": [false]
50+
"enum": [false],
51+
"cli": {
52+
"negatedDescription": "Disables client script."
53+
}
5154
},
5255
{
5356
"type": "object",

Diff for: test/cli/__snapshots__/basic.test.js.snap.webpack4

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Options:
5858
--allowed-hosts-reset Clear all items provided in 'allowedHosts' configuration. Allows to enumerate the hosts from which access to the dev server are allowed (useful when you are proxying dev server, by default is 'auto').
5959
--bonjour Allows to broadcasts dev server via ZeroConf networking on start.
6060
--no-bonjour Disallows to broadcasts dev server via ZeroConf networking on start.
61-
--no-client Negative 'client' option.
61+
--no-client Disables client script.
6262
--client-logging <value> Allows to set log level in the browser.
6363
--client-overlay Enables a full-screen overlay in the browser when there are compiler errors or warnings.
6464
--no-client-overlay Disables a full-screen overlay in the browser when there are compiler errors or warnings.

Diff for: test/cli/__snapshots__/basic.test.js.snap.webpack5

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Options:
5959
--allowed-hosts-reset Clear all items provided in 'allowedHosts' configuration. Allows to enumerate the hosts from which access to the dev server are allowed (useful when you are proxying dev server, by default is 'auto').
6060
--bonjour Allows to broadcasts dev server via ZeroConf networking on start.
6161
--no-bonjour Disallows to broadcasts dev server via ZeroConf networking on start.
62-
--no-client Negative 'client' option.
62+
--no-client Disables client script.
6363
--client-logging <value> Allows to set log level in the browser.
6464
--client-overlay Enables a full-screen overlay in the browser when there are compiler errors or warnings.
6565
--no-client-overlay Disables a full-screen overlay in the browser when there are compiler errors or warnings.

Diff for: types/bin/cli-flags.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ declare const _exports: {
4545
client: {
4646
configs: {
4747
description: string;
48+
negatedDescription: string;
4849
multiple: boolean;
4950
path: string;
5051
type: string;

0 commit comments

Comments
 (0)