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
console.log('Using contentBase as a proxy is deprecated and will be removed in the next major version. Please use the proxy option instead.\n\nTo update remove the contentBase option from webpack.config.js and add this:');
134
+
console.log('proxy: {\n\t"*": [your current contentBase configuration]\n}');
133
135
// Proxy every request to contentBase.target
134
136
app.all("*",function(req,res){
135
137
proxy.web(req,res,contentBase,function(err){
136
138
varmsg="cannot proxy to "+contentBase.target+" ("+err.message+")";
137
139
this.io.sockets.emit("proxy-error",[msg]);
138
140
}.bind(this));
139
141
}.bind(this));
142
+
140
143
}elseif(/^(https?:)?\/\//.test(contentBase)){
144
+
console.log('Using contentBase as a proxy is deprecated and will be removed in the next major version. Please use the proxy option instead.\n\nTo update remove the contentBase option from webpack.config.js and add this:');
console.log('Using contentBase as a proxy is deprecated and will be removed in the next major version. Please use the proxy option instead.\n\nTo update remove the contentBase option from webpack.config.js and add this:');
0 commit comments