Reputation: 35
When running webpack-dev-server, I am running Jarvis on port 1337 for auditing purposes, while my app is running locally on port 8080. I would like to open localhost:1337 in my browser automatically via webpack. When I run webpack-dev-server --open it opens localhost:8080 (which is expected) Is it possible to open localhost on a different port (1337 in this case) ? I have come across the --open-page flag but do not see any other options.
Upvotes: 2
Views: 313
Reputation: 2673
Linux:
webpack-dev-server & xdg-open http://localhost:1337
The single ampersand is important. With this command you can omit --open
and --port
(which will then default to 8080
.
Upvotes: 1