@@ -163,6 +163,12 @@ Usage via the CLI:
163
163
npx webpack serve --bonjour
164
164
```
165
165
166
+ To disable:
167
+
168
+ ``` bash
169
+ npx webpack serve --no-bonjour
170
+ ```
171
+
166
172
You can also pass [ custom options] ( https://github.com/watson/bonjour#initializing ) to bonjour, for example:
167
173
168
174
** webpack.config.js**
@@ -231,6 +237,12 @@ Usage via the CLI:
231
237
npx webpack serve --client-overlay
232
238
```
233
239
240
+ To disable:
241
+
242
+ ``` bash
243
+ npx webpack serve --no-client-overlay
244
+ ```
245
+
234
246
If you want to show only errors:
235
247
236
248
** webpack.config.js**
@@ -278,6 +290,12 @@ Usage via the CLI:
278
290
npx webpack serve --client-progress
279
291
```
280
292
293
+ To disable:
294
+
295
+ ``` bash
296
+ npx webpack serve --no-client-progress
297
+ ```
298
+
281
299
### webSocketTransport
282
300
283
301
` 'ws' | 'sockjs' ` ` string `
@@ -421,6 +439,12 @@ Usage via the CLI:
421
439
npx webpack serve --compress
422
440
```
423
441
442
+ To disable:
443
+
444
+ ``` bash
445
+ npx webpack serve --no-compress
446
+ ```
447
+
424
448
## devserver.devMiddleware
425
449
426
450
Provide options to [ webpack-dev-middleware] ( https://github.com/webpack/webpack-dev-middleware ) which handles webpack assets.
@@ -482,7 +506,13 @@ Usage via CLI
482
506
npx webpack serve --http2
483
507
```
484
508
485
- To pass your own certificate via CLI, use the following options
509
+ To disable:
510
+
511
+ ``` bash
512
+ npx webpack serve --no-http2
513
+ ```
514
+
515
+ To pass your own certificate via CLI, use the following options:
486
516
487
517
``` bash
488
518
npx webpack serve --http2 --https-key ./path/to/server.key --https-cert ./path/to/server.crt --https-cacert ./path/to/ca.pem
@@ -532,7 +562,13 @@ Usage via the CLI:
532
562
npx webpack serve --https
533
563
```
534
564
535
- To pass your own certificate via the CLI use the following options
565
+ To disable:
566
+
567
+ ``` bash
568
+ npx webpack serve --no-https
569
+ ```
570
+
571
+ To pass your own certificate via the CLI use the following options:
536
572
537
573
``` bash
538
574
npx webpack serve --https-key ./path/to/server.key --https--cert ./path/to/server.crt --https-cacert ./path/to/ca.pem
@@ -614,6 +650,12 @@ Usage via the CLI:
614
650
npx webpack serve --history-api-fallback
615
651
```
616
652
653
+ To disable:
654
+
655
+ ``` bash
656
+ npx webpack serve --no-history-api-fallback
657
+ ```
658
+
617
659
For more options and information, see the [ connect-history-api-fallback] ( https://github.com/bripkens/connect-history-api-fallback ) documentation.
618
660
619
661
## devServer.host
@@ -692,6 +734,12 @@ Usage via the CLI:
692
734
npx webpack serve --hot
693
735
```
694
736
737
+ To disable:
738
+
739
+ ``` bash
740
+ npx webpack serve --no-hot
741
+ ```
742
+
695
743
To enable Hot Module Replacement without page refresh as a fallback in case of build failures, use ` hot: 'only' ` :
696
744
697
745
** webpack.config.js**
@@ -884,6 +932,12 @@ Usage via the CLI:
884
932
npx webpack serve --open
885
933
```
886
934
935
+ To disable:
936
+
937
+ ``` bash
938
+ npx webpack serve --no-open
939
+ ```
940
+
887
941
To open a specified page in browser:
888
942
889
943
** webpack.config.js**
0 commit comments