Skip to content

Commit

Permalink
fix: update description for --no-client (#4250)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Feb 6, 2022
1 parent 72cdfa4 commit c3b6690
Show file tree
Hide file tree
Showing 7 changed files with 379 additions and 392 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -90,7 +90,7 @@ Options:
you are proxying dev server, by default is 'auto').
--bonjour Allows to broadcasts dev server via ZeroConf networking on start.
--no-bonjour Disallows to broadcasts dev server via ZeroConf networking on start.
--no-client Negative 'client' option.
--no-client Disables client script.
--client-logging <value> 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 Disables a full-screen overlay in the browser when there are compiler errors or warnings.
Expand Down
1 change: 1 addition & 0 deletions bin/cli-flags.js
Expand Up @@ -61,6 +61,7 @@ module.exports = {
{
description:
"Allows to specify options for client script in the browser or disable client script.",
negatedDescription: "Disables client script.",
multiple: false,
path: "client",
type: "enum",
Expand Down
5 changes: 4 additions & 1 deletion lib/options.json
Expand Up @@ -47,7 +47,10 @@
"link": "https://webpack.js.org/configuration/dev-server/#devserverclient",
"anyOf": [
{
"enum": [false]
"enum": [false],
"cli": {
"negatedDescription": "Disables client script."
}
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion test/cli/__snapshots__/basic.test.js.snap.webpack4
Expand Up @@ -58,7 +58,7 @@ Options:
--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').
--bonjour Allows to broadcasts dev server via ZeroConf networking on start.
--no-bonjour Disallows to broadcasts dev server via ZeroConf networking on start.
--no-client Negative 'client' option.
--no-client Disables client script.
--client-logging <value> 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 Disables a full-screen overlay in the browser when there are compiler errors or warnings.
Expand Down
2 changes: 1 addition & 1 deletion test/cli/__snapshots__/basic.test.js.snap.webpack5
Expand Up @@ -59,7 +59,7 @@ Options:
--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').
--bonjour Allows to broadcasts dev server via ZeroConf networking on start.
--no-bonjour Disallows to broadcasts dev server via ZeroConf networking on start.
--no-client Negative 'client' option.
--no-client Disables client script.
--client-logging <value> 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 Disables a full-screen overlay in the browser when there are compiler errors or warnings.
Expand Down
1 change: 1 addition & 0 deletions types/bin/cli-flags.d.ts
Expand Up @@ -45,6 +45,7 @@ declare const _exports: {
client: {
configs: {
description: string;
negatedDescription: string;
multiple: boolean;
path: string;
type: string;
Expand Down

0 comments on commit c3b6690

Please sign in to comment.