diff --git a/lib/Server.js b/lib/Server.js index 118f096670..548bafdc52 100644 --- a/lib/Server.js +++ b/lib/Server.js @@ -239,6 +239,8 @@ function Server(compiler, options) { app.get("*", express.static(item)); }); } else if(/^(https?:)?\/\//.test(contentBase)) { + console.log("Using a URL as contentBase is deprecated and will be removed in the next major version. Please use the proxy option instead."); + console.log('proxy: {\n\t"*": ""\n}'); // eslint-disable-line quotes // Redirect every request to contentBase app.get("*", function(req, res) { res.writeHead(302, { @@ -247,6 +249,8 @@ function Server(compiler, options) { res.end(); }); } else if(typeof contentBase === "number") { + console.log("Using a number as contentBase is deprecated and will be removed in the next major version. Please use the proxy option instead."); + console.log('proxy: {\n\t"*": "//localhost:"\n}'); // eslint-disable-line quotes // Redirect every request to the port contentBase app.get("*", function(req, res) { res.writeHead(302, {