Skip to content

Injecting information about port mapping (docker) to CLI #4558

Open
@cmath10

Description

@cmath10

What problem does this feature solve?

Inside docker container, CLI generates a message like:

It seems you are running Vue CLI inside a container.
Access the dev server via http://localhost:<your container's external mapped port>/

I propose to add configuration settings for this <your container's external mapped port> to force CLI to generate a correct external link instead of the message above.

https://stackoverflow.com/questions/57752780/how-to-change-vue-cli-message-after-successfull-compile-app-running-at

What does the proposed API look like?

Something like

module.exports = {
// ...
externalPort: 1234,
// ...
}

Or maybe it is possible to use some CLI hooks, to affect the final message, currently not able to find an appropriate option.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions