You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
68
70
--config-name <value...> Name of the configuration to use.
@@ -83,17 +85,12 @@ Options:
83
85
--no-target Negative 'target' option.
84
86
--watch-options-stdin Stop watching when stdin stream has ended.
85
87
--no-watch-options-stdin Do not stop watching when stdin stream has ended.
86
-
--allowed-hosts <value...> 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').
--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
89
-
when you are proxying dev server, by default is 'auto'). https://webpack.js.org/configuration/dev-server/#devserverallowedhosts
88
+
--allowed-hosts <value...> 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'). https://webpack.js.org/configuration/dev-server/#devserverallowedhosts
89
+
--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'). https://webpack.js.org/configuration/dev-server/#devserverallowedhosts
90
90
--bonjour Allows to broadcasts dev server via ZeroConf networking on start. https://webpack.js.org/configuration/dev-server/#devserverbonjour
91
91
--no-bonjour Negative 'bonjour' option.
92
-
--client-hot-entry Injects a Hot Module Replacement entry.
--client-logging <value> Allows to specify options for client script in the browser or disable client script. https://webpack.js.org/configuration/dev-server/#devserverclient
97
94
--client-overlay Enables a full-screen overlay in the browser when there are compiler errors or warnings.
--client-overlay-errors Enables a full-screen overlay in the browser when there are compiler errors.
@@ -112,16 +109,14 @@ Options:
112
109
--client-web-socket-url-username <value> Tells clients connected to devServer to use the provided username to authenticate.
113
110
--compress Enables gzip compression for everything served. https://webpack.js.org/configuration/dev-server/#devservercompress
114
111
--no-compress Negative 'compress' option.
115
-
--history-api-fallback Allows to proxy requests through a specified index page (by default 'index.html'), useful for Single Page Applications that utilise the HTML5
116
-
History API. https://webpack.js.org/configuration/dev-server/#devserverhistoryapifallback
112
+
--history-api-fallback Allows to proxy requests through a specified index page (by default 'index.html'), useful for Single Page Applications that utilise the HTML5 History API. https://webpack.js.org/configuration/dev-server/#devserverhistoryapifallback
--https Allows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP). https://webpack.js.org/configuration/dev-server/#devserverhttps
125
120
--no-https Negative 'https' option.
126
121
--https-passphrase <value> Passphrase for a pfx file.
127
122
--https-request-cert Request for an SSL certificate.
@@ -131,42 +126,42 @@ Options:
131
126
--https-pfx <value> Path to an SSL pfx file.
132
127
--https-cert <value> Path to an SSL certificate.
133
128
--ipc [value] Listen to a unix socket. https://webpack.js.org/configuration/dev-server/#devserveripc
134
-
--live-reload Enables reload/refresh the page(s) when file changes are detected (enabled by default).
--live-reload Enables reload/refresh the page(s) when file changes are detected (enabled by default). https://webpack.js.org/configuration/dev-server/#devserverlivereload
136
130
--no-live-reload Negative 'live-reload' option.
137
-
--open [value...] Allows to configure dev server to open the browser(s) and page(s) after server had been started (set it to true to open your default browser).
--open [value...] Allows to configure dev server to open the browser(s) and page(s) after server had been started (set it to true to open your default browser). https://webpack.js.org/configuration/dev-server/#devserveropen
139
132
--no-open Negative 'open' option.
140
133
--open-target <value...> Opens specified page in browser.
141
134
--open-app-name <value...> Open specified browser.
142
135
--open-app <value...> Open specified browser.
143
-
--open-reset Clear all items provided in 'open' configuration. Allows to configure dev server to open the browser(s) and page(s) after server had been started
144
-
(set it to true to open your default browser). https://webpack.js.org/configuration/dev-server/#devserveropen
136
+
--open-reset Clear all items provided in 'open' configuration. Allows to configure dev server to open the browser(s) and page(s) after server had been started (set it to true to open your default browser). https://webpack.js.org/configuration/dev-server/#devserveropen
145
137
--open-target-reset Clear all items provided in 'open.target' configuration. Opens specified page in browser.
146
138
--open-app-name-reset Clear all items provided in 'open.app.name' configuration. Open specified browser.
147
139
--port <value> Allows to specify a port to use. https://webpack.js.org/configuration/dev-server/#devserverport
148
-
--static [value...] Allows to configure options for serving static files from directory (by default 'public' directory).
--static-watch Watches for files in static content directory.
156
147
--no-static-watch Negative 'static-watch' option.
157
-
--static-reset Clear all items provided in 'static' configuration. Allows to configure options for serving static files from directory (by default 'public'
--static-reset Clear all items provided in 'static' configuration. Allows to configure options for serving static files from directory (by default 'public' directory). https://webpack.js.org/configuration/dev-server/#devserverstatic
159
149
--static-public-path-reset Clear all items provided in 'static.publicPath' configuration. The static files will be available in the browser under this public path.
160
150
--watch-files <value...> Allows to configure list of globs/directories/files to watch for file changes. https://webpack.js.org/configuration/dev-server/#devserverwatchfiles
161
-
--watch-files-reset Clear all items provided in 'watchFiles' configuration. Allows to configure list of globs/directories/files to watch for file changes.
--watch-files-reset Clear all items provided in 'watchFiles' configuration. Allows to configure list of globs/directories/files to watch for file changes. https://webpack.js.org/configuration/dev-server/#devserverwatchfiles
163
152
--web-socket-server <value> Allows to set web socket server and options (by default 'ws'). https://webpack.js.org/configuration/dev-server/#devserverwebsocketserver
164
153
165
154
Global options:
166
155
--color Enable colors on console.
167
156
--no-color Disable colors on console.
168
157
-v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
169
158
-h, --help [verbose] Display help for commands and options.
159
+
160
+
To see list of all supported commands and options run 'webpack --help=verbose'.
Copy file name to clipboardExpand all lines: bin/cli-flags.js
+18-29Lines changed: 18 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -79,19 +79,35 @@ module.exports = {
79
79
simpleType: 'string',
80
80
multiple: false,
81
81
},
82
+
client: {
83
+
configs: [
84
+
{
85
+
description:
86
+
'Allows to specify options for client script in the browser or disable client script. https://webpack.js.org/configuration/dev-server/#devserverclient',
87
+
multiple: false,
88
+
path: 'client',
89
+
type: 'enum',
90
+
values: [false],
91
+
},
92
+
],
93
+
description:
94
+
'Allows to specify options for client script in the browser or disable client script. https://webpack.js.org/configuration/dev-server/#devserverclient',
'Allows to specify options for client script in the browser. https://webpack.js.org/configuration/dev-server/#devserverclient',
105
+
'Allows to specify options for client script in the browser or disable client script. https://webpack.js.org/configuration/dev-server/#devserverclient',
90
106
path: 'client.logging',
91
107
},
92
108
],
93
109
description:
94
-
'Allows to specify options for client script in the browser. https://webpack.js.org/configuration/dev-server/#devserverclient',
110
+
'Allows to specify options for client script in the browser or disable client script. https://webpack.js.org/configuration/dev-server/#devserverclient',
95
111
simpleType: 'string',
96
112
multiple: false,
97
113
},
@@ -158,33 +174,6 @@ module.exports = {
158
174
simpleType: 'boolean',
159
175
multiple: false,
160
176
},
161
-
'client-need-client-entry': {
162
-
configs: [
163
-
{
164
-
type: 'boolean',
165
-
multiple: false,
166
-
description: 'Inject a client entry.',
167
-
path: 'client.needClientEntry',
168
-
},
169
-
],
170
-
description: 'Inject a client entry.',
171
-
simpleType: 'boolean',
172
-
multiple: false,
173
-
},
174
-
'client-hot-entry': {
175
-
configs: [
176
-
{
177
-
type: 'boolean',
178
-
multiple: false,
179
-
description: 'Injects a Hot Module Replacement entry.',
180
-
path: 'client.hotEntry',
181
-
},
182
-
],
183
-
description: 'Injects a Hot Module Replacement entry.',
184
-
negatedDescription: 'Does not injects a Hot Module Replacement entry.',
Copy file name to clipboardExpand all lines: lib/options.json
+21-42Lines changed: 21 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -37,59 +37,38 @@
37
37
"description": "Allows to broadcasts dev server via ZeroConf networking on start. https://webpack.js.org/configuration/dev-server/#devserverbonjour"
38
38
},
39
39
"Client": {
40
-
"type": "object",
41
-
"description": "Allows to specify options for client script in the browser. https://webpack.js.org/configuration/dev-server/#devserverclient",
42
-
"additionalProperties": false,
43
-
"properties": {
44
-
"hotEntry": {
45
-
"$ref": "#/definitions/ClientHotEntry"
46
-
},
47
-
"logging": {
48
-
"$ref": "#/definitions/ClientLogging"
49
-
},
50
-
"needClientEntry": {
51
-
"$ref": "#/definitions/ClientNeedClientEntry"
52
-
},
53
-
"overlay": {
54
-
"$ref": "#/definitions/ClientOverlay"
55
-
},
56
-
"progress": {
57
-
"$ref": "#/definitions/ClientProgress"
58
-
},
59
-
"transport": {
60
-
"$ref": "#/definitions/ClientTransport"
61
-
},
62
-
"webSocketURL": {
63
-
"$ref": "#/definitions/ClientWebSocketURL"
64
-
}
65
-
}
66
-
},
67
-
"ClientHotEntry": {
68
-
"description": "Injects a Hot Module Replacement entry.",
40
+
"description": "Allows to specify options for client script in the browser or disable client script. https://webpack.js.org/configuration/dev-server/#devserverclient",
0 commit comments