Skip to content

Commit dc4c147

Browse files
committed
have --open use the options.public path if it exists
1 parent 5f49fde commit dc4c147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/webpack-dev-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ if(options.inline) {
196196
}
197197

198198
new Server(webpack(wpOpt), options).listen(options.port, options.host, function(err) {
199-
var uri = protocol + "://" + options.host + ":" + options.port + "/";
199+
var uri = protocol + "://" + (options.public || (options.host + ":" + options.port)) + "/";
200200
if(!options.inline)
201201
uri += "webpack-dev-server/";
202202

0 commit comments

Comments
 (0)