Webpack-dev-server: Make server url clickable in terminal

Created on 15 May 2017  路  8Comments  路  Source: webpack/webpack-dev-server

What is the current behavior?
When you start server you see Project is running at http://localhost:3002/ which is not clickable.

What is the expected behavior?
When you click on link with ctrl (or cmd) os should open an url in browser.

If this is a feature request, what is motivation or use case for changing the behavior?
It is very convinient :)

Do not know if it possible with webpack's streams, but when you create a server with angular cli, server url link is clickable.

4 (nice to have) question

All 8 comments

Not sure if that's easy/possible.

We could copy the link to clipboard?

Just like serve does.

What do you think? @FriOne

image

@AshikNesin The copying may remove something important that a developer copied previously.
Also, sometimes you close browser tab and then want to open it again.
It is 100% possible, but it may be not so easy with webpack ecosystem.

@FriOne Yeah.. Didn't think about that use case.

Lets see if someone can help us :)

(I'm new to webpack dev ecosystem)

With OSX, you can use cmd + double click to open the link.

@schester44 unfortunatly I have windows :) What about Linux?

Unfortunately there isn't a way with cmd.exe. However, there is a way with PowerShell (https://stackoverflow.com/questions/3644940/click-a-hyperlink-using-powershell) and you can always opt to use something like the Hyper terminal (https://hyper.is/) on Windows.

@shellscape I use Git Bash, so why is it possible with angular cli but doesn't with webpack?

@FriOne perhaps they're using some console output formatting that I'm not familiar with. The first stop would be the angular cli project on github, analyze (or ask the team there) and find the code/characters responsible for allowing it to be clickable, and then opening a PR here for allowing the same :)

Was this page helpful?
0 / 5 - 0 ratings