Skip to content
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

Connecting to the client via a remote URL #228

Open
rafpaf opened this issue Jul 26, 2021 · 0 comments
Open

Connecting to the client via a remote URL #228

rafpaf opened this issue Jul 26, 2021 · 0 comments

Comments

@rafpaf
Copy link

rafpaf commented Jul 26, 2021

  • Webpack Version: 5.42.0
  • Operating System (or Browser): Ubuntu 20.04
  • Node Version: v14.17.0
  • webpack-plugin-serve Version: 1.4.1

I'm developing remotely, so I need webpack-plugin-serve to connect to a URL like ws://dev.example.com/wps. The plugin is still attempting to connect at ws://localhost:9000/wps, even though I have set the client option to { protocol: "ws", address: "147.147.147.147:9000" }.

In my webpack.config.js, the options are as follows. (These aren't my actual IP address and host, of course.)

      new Serve({
        port: 9000,
        client: { protocol: "ws", address: "147.147.147.147:9000" },
        host: "dev.assets.example.com",
        compress: true,
        hmr: true,
        static: "./dist",
      }),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant