-
Notifications
You must be signed in to change notification settings - Fork 12k
Launch site after ng serve? #1245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This could be pretty easy to implement. I've done this before with the OPN package https://www.npmjs.com/package/opn. There could be an additional flag on the serve command similar to the ones below:
If anyone else thinks this is a good idea I may try a pull-request at this one. |
Being able to select a browser like you suggested would be a nice touch as well. |
Dupe of #1081 |
Please feel free to continue the discussion and proposals in the other issue though! |
@Austin94 do you mind show how you implement OPN? |
@keepscoding This conversation should probably be moved to the duplicate issue if that's still active, but from opn README https://www.npmjs.com/package/opn (or you can use the opn-cli package) we could just grab the port that it was started on and add the app name based off of a argument passed in.
|
@Austin94 where to add these code e.g. open default browser? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Is it possible to have ng serve launch your site after it starts up? I find this easier than having to copy the localhost with port address from the terminal and paste it into a new browser tab
The text was updated successfully, but these errors were encountered: