How to run webpack-dev-server on localhost without a port

1.7k Views Asked by At

I have a React app, to run it locally I use webpack-dev-server. This is how my command looks like:

"scripts": {
    "dev-server": "webpack-dev-server --config ./webpack.dev.js --open --https --hot --history-api-fallback",
  }

When I do npm run dev-server it opens a browser for me with url "https://localhost:8080/".

Is it possible to map it somehow to "https://localhost" (without the port)?

0

There are 0 best solutions below