Skip to content

Commit 98fd2f4

Browse files
committed
Open correct url if not using inline modus.
1 parent 0989810 commit 98fd2f4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bin/webpack-dev-server.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,11 @@ if(options.inline) {
164164

165165
new Server(webpack(wpOpt), options).listen(options.port, options.host, function(err) {
166166
var uri = protocol + "://" + options.host + ":" + options.port + "/";
167+
if(!options.inline)
168+
uri += "webpack-dev-server/";
167169

168170
if(err) throw err;
169-
if(options.inline)
170-
console.log(uri);
171-
else
172-
console.log(uri + "webpack-dev-server/");
171+
console.log(uri);
173172
console.log("webpack result is served from " + options.publicPath);
174173
if(typeof options.contentBase === "object")
175174
console.log("requests are proxied to " + options.contentBase.target);

0 commit comments

Comments
 (0)