Skip to content

Commit 4def399

Browse files
authored
Merge d7ae2a2 into 73dfebc
2 parents 73dfebc + d7ae2a2 commit 4def399

File tree

2 files changed

+24
-19
lines changed

2 files changed

+24
-19
lines changed

README.md

+21-19
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ node_modules/.bin/webpack serve
6161
Following options are available with `webpack serve`:
6262

6363
```
64+
Usage: webpack serve|s [entries...] [options]
65+
6466
Options:
6567
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
6668
--config-name <value...> Name of the configuration to use.
@@ -79,28 +81,28 @@ Options:
7981
-t, --target <value...> Sets the build target e.g. node.
8082
--watch-options-stdin Stop watching when stdin stream has ended.
8183
--no-watch-options-stdin Do not stop watching when stdin stream has ended.
82-
--host <value> The hostname/ip address the server will bind to
83-
--port <value> The port
84+
--host <value> The hostname/ip address the server will bind to.
85+
--port <value> The port server will listen to.
8486
--static [value...] A directory to serve static content from.
8587
--no-static Negative 'static' option.
86-
--live-reload Enables/Disables live reloading on changing files
87-
--no-live-reload Negative 'live-reload' option.
88-
--https HTTPS
89-
--http2 HTTP/2, must be used with HTTPS
90-
--bonjour Broadcasts the server via ZeroConf networking on start
91-
--client-progress Print compilation progress in percentage in the browser
92-
--hot-only Do not refresh page if HMR fails
93-
--setup-exit-signals Close and exit the process on SIGINT and SIGTERM
94-
--no-setup-exit-signals Negative 'setup-exit-signals' option.
95-
--stdin Close when stdin ends
96-
--open [value] Open the default browser, or optionally specify a browser name
97-
--use-local-ip Open default browser with local IP
98-
--open-page <value...> Open default browser with the specified page
99-
--client-logging <value> Log level in the browser (none, error, warn, info, log, verbose)
88+
--live-reload Enables live reloading on changing files.
89+
--no-live-reload Disables live reloading on changing files.
90+
--https Use HTTPS protocol.
91+
--http2 Use HTTP/2, must be used with HTTPS.
92+
--bonjour Broadcasts the server via ZeroConf networking on start.
93+
--client-progress Print compilation progress in percentage in the browser.
94+
--hot-only Do not refresh page if HMR fails.
95+
--setup-exit-signals Close and exit the process on SIGINT and SIGTERM.
96+
--no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM.
97+
--stdin Close when stdin ends.
98+
--open [value] Open the default browser, or optionally specify a browser name.
99+
--use-local-ip Open default browser with local IP.
100+
--open-page <value...> Open default browser with the specified page.
101+
--client-logging <value> Log level in the browser (none, error, warn, info, log, verbose).
100102
--history-api-fallback Fallback to /index.html for Single Page Applications.
101-
--compress Enable gzip compression
102-
--public <value> The public hostname/ip address of the server
103-
--firewall <value...> Enable/disable firewall, or set hosts that are allowed to access the dev server
103+
--compress Enable gzip compression.
104+
--public <value> The public hostname/ip address of the server.
105+
--firewall <value...> Enable/disable firewall, or set hosts that are allowed to access the dev server.
104106
105107
Global options:
106108
--color Enable colors on console.

bin/cli-flags.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = {
2323
name: 'live-reload',
2424
type: Boolean,
2525
description: 'Enables live reloading on changing files.',
26+
negatedDescription: 'Disables live reloading on changing files.',
2627
negative: true,
2728
},
2829
{
@@ -63,6 +64,8 @@ module.exports = {
6364
name: 'setup-exit-signals',
6465
type: Boolean,
6566
description: 'Close and exit the process on SIGINT and SIGTERM.',
67+
negatedDescription:
68+
'Do not close and exit the process on SIGNIT and SIGTERM.',
6669
negative: true,
6770
},
6871
{

0 commit comments

Comments
 (0)