Skip to content

Commit 9188878

Browse files
Telokisshellscape
authored andcommitted
Added cli option --disable-host-check (#980)
Will set `options.disableHostCheck` to true if enabled.
1 parent b97dc5e commit 9188878

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/webpack-dev-server.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,11 @@ yargs.options({
184184
describe: "The port",
185185
group: CONNECTION_GROUP
186186
},
187+
"disable-host-check": {
188+
type: "boolean",
189+
describe: "Will not check the host",
190+
group: CONNECTION_GROUP
191+
},
187192
"socket": {
188193
type: "String",
189194
describe: "Socket to listen",
@@ -328,6 +333,9 @@ function processOptions(wpOpt) {
328333
if(argv["compress"])
329334
options.compress = true;
330335

336+
if(argv["disable-host-check"])
337+
options.disableHostCheck = true;
338+
331339
if(argv["open"] || argv["open-page"]) {
332340
options.open = true;
333341
options.openPage = argv["open-page"] || "";

0 commit comments

Comments
 (0)