Skip to content

Commit 6263b84

Browse files
authored
Merge branch 'master' into opt/desc
2 parents e6df42d + 2d51e02 commit 6263b84

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ Options:
9494
--http2 Use HTTP/2, must be used with HTTPS.
9595
--no-http2 Do not use HTTP/2.
9696
--bonjour Broadcasts the server via ZeroConf networking on start.
97-
--no-bonjour Negative 'bonjour' option.
97+
--no-bonjour Do not broadcast the server via ZeroConf networking on start.
9898
--client-progress Print compilation progress in percentage in the browser.
99+
--no-client-progress Do not print compilation progress in percentage in the browser.
99100
--client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings.
100101
--no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings.
101102
--setup-exit-signals Close and exit the process on SIGINT and SIGTERM.
@@ -131,8 +132,10 @@ binaries without having to be concerned about their full paths. Simply define a
131132
script as such:
132133

133134
```json
134-
"scripts": {
135-
"start:dev": "webpack serve"
135+
{
136+
"scripts": {
137+
"serve": "webpack serve"
138+
}
136139
}
137140
```
138141

bin/cli-flags.js

+9
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ module.exports = {
8282
},
8383
],
8484
description: 'Broadcasts the server via ZeroConf networking on start.',
85+
negatedDescription:
86+
'Do not broadcast the server via ZeroConf networking on start.',
87+
negative: true,
8588
},
8689
{
8790
name: 'client-progress',
@@ -92,6 +95,9 @@ module.exports = {
9295
},
9396
],
9497
description: 'Print compilation progress in percentage in the browser.',
98+
negatedDescription:
99+
'Do not print compilation progress in percentage in the browser.',
100+
negative: true,
95101
processor(opts) {
96102
opts.client = opts.client || {};
97103
opts.client.progress = opts.clientProgress;
@@ -110,6 +116,7 @@ module.exports = {
110116
'Show a full-screen overlay in the browser when there are compiler errors or warnings.',
111117
negatedDescription:
112118
'Do not show a full-screen overlay in the browser when there are compiler errors or warnings.',
119+
negative: true,
113120
processor(opts) {
114121
opts.client = opts.client || {};
115122
opts.client.overlay = opts.clientOverlay;
@@ -144,6 +151,7 @@ module.exports = {
144151
],
145152
description: 'Open the default browser.',
146153
negatedDescription: 'Do not open the default browser.',
154+
negative: true,
147155
},
148156
{
149157
name: 'open-app',
@@ -179,6 +187,7 @@ module.exports = {
179187
},
180188
negatedDescription: 'Do not open specified route in browser.',
181189
multiple: true,
190+
negative: true,
182191
},
183192
{
184193
name: 'client-logging',

test/cli/__snapshots__/cli.test.js.snap.webpack4

+4-2
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,12 @@ Options:
115115
--no-http2 Do not use HTTP/2.
116116
--bonjour Broadcasts the server via ZeroConf networking on
117117
start.
118-
--no-bonjour Negative 'bonjour' option.
118+
--no-bonjour Do not broadcast the server via ZeroConf
119+
networking on start.
119120
--client-progress Print compilation progress in percentage in the
120121
browser.
121-
--no-client-progress Negative 'client-progress' option.
122+
--no-client-progress Do not print compilation progress in percentage in
123+
the browser.
122124
--client-overlay Show a full-screen overlay in the browser when
123125
there are compiler errors or warnings.
124126
--no-client-overlay Do not show a full-screen overlay in the browser

test/cli/__snapshots__/cli.test.js.snap.webpack5

+4-2
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,12 @@ Options:
117117
--no-http2 Do not use HTTP/2.
118118
--bonjour Broadcasts the server via ZeroConf networking on
119119
start.
120-
--no-bonjour Negative 'bonjour' option.
120+
--no-bonjour Do not broadcast the server via ZeroConf
121+
networking on start.
121122
--client-progress Print compilation progress in percentage in the
122123
browser.
123-
--no-client-progress Negative 'client-progress' option.
124+
--no-client-progress Do not print compilation progress in percentage in
125+
the browser.
124126
--client-overlay Show a full-screen overlay in the browser when
125127
there are compiler errors or warnings.
126128
--no-client-overlay Do not show a full-screen overlay in the browser

0 commit comments

Comments
 (0)