Skip to content

Conversation

@pepies
Copy link

@pepies pepies commented Aug 25, 2021

Based on this:
https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md
public, sockHost, sockPath, and sockPort options were removed in favor client.webSocketURL

Webpack version 5 installs dev server version 4 by default so documentation should be in sync with newest stable release.

@vercel
Copy link

vercel bot commented Aug 25, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/webpack-docs/webpack-js-org/4FAm54iPomJUMfUMAvAkxf621DLP
✅ Preview: https://webpack-js-org-git-fork-pepies-patch-1-webpack-docs.vercel.app

@pepies pepies changed the title Update development-vagrant.mdx fix(docs): Update development-vagrant.mdx Aug 25, 2021
@chenxsan chenxsan closed this Aug 25, 2021
@chenxsan chenxsan reopened this Aug 25, 2021

```bash
webpack serve --public 10.10.10.61 --watch-poll
webpack serve --client-web-socket-url 10.10.10.61 --watch-poll
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally it should be wss://hostname:port/ws, because it is full url


```bash
webpack serve --host 0.0.0.0 --public 10.10.10.61:8080 --watch-poll
webpack serve --host 0.0.0.0 --client-web-socket-url 10.10.10.61:8080 --watch-poll
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I think we need to update --watch-poll to --watch-options-poll everywhere.

Suggested change
webpack serve --host 0.0.0.0 --client-web-socket-url 10.10.10.61:8080 --watch-poll
webpack serve --host 0.0.0.0 --client-web-socket-url 10.10.10.61:8080 --watch-options-poll

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

Successfully merging this pull request may close these issues.

4 participants