I use webpack dev-server with npm and having simple config file all works perfectly except that I would like to have dev-server runnning the browser with additional url params attached to 'host' url.
config:
...
{
static: path.resolve(__dirname, "../public"),
host: "localhost",
hot: true,
port: 8080
}
...
target: "web"
Unfortunately adding anything to host like:
"localhost/?developer=John"
will not work, but I would like to set this param in config.js (which is handled then in the code) than copy paste it to url every time dev sever runs. Is there anyway to attach url params to the host url running the code with webpack dev server ?
Thanks in advance
publicPath: "http://localhost/?developer=John",afterport : 8080. When we setting up publicPath to"http://localhost/?developer=John", the webpack dev server will start serving your application files from this URL.