Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Public path is hard-coded as localhost #64

@fweep

Description

@fweep

This isn't necessarily a bug, but it's potentially confusing. When you start the server with the default config/webpack.config.js, it prints:

 webpack result is served from //localhost:3808/webpack/

While this is true in the default case, if you start it with a custom host binding, like this:

webpack-dev-server --config config/webpack.config.js --host 10.0.0.100

Then the hard-coded localhost is a bit misleading. Since webpack-dev-server already prints the host and port binding on the line immediately prior, it might make sense to just limit the publicPath setting to the actual file path (/webpack). For example:

 http://10.0.0.100:3808/webpack-dev-server/
webpack result is served from /webpack/

In reading the webpack-dev-server documentation, it looks like publicPath is supposed to be relative, but I'm still learning, so I'm not sure, but it works for me with just the relative path setting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions