Skip to content

Improve/silence WebpackDevServer client #263

Closed

Description

@gaearon

This doesn’t help anyone, it’s just annoying:

screen shot 2016-07-28 at 19 42 11

Similarly, these logs are not useful to us:

screen shot 2016-07-28 at 19 45 02

We should a PR to webpack-dev-server to deduplicate logs, and to optionally disable some of them. If it isn’t accepted, we should replace these parts with custom scripts—they are really small, easy to tweak, and almost never change.

Activity

  1. alexzherdev commented on Jul 29, 2016

    @alexzherdev
    Contributor

    I thought I'd just go ahead and file an issue first to gauge the interest. webpack/webpack-dev-server#540

  2. SpaceK33z commented on Aug 31, 2016

    @SpaceK33z
    Contributor

    Hi, could you guys check if this PR webpack/webpack-dev-server#579 works for you? I'm maintaining webpack-dev-server and interested to work with you to fix annoyances :).

  3. gaearon commented on Sep 2, 2016

    @gaearon
    ContributorAuthor

    Left a comment, thank you for looking at this!

  4. chall8908 commented on Sep 3, 2016

    @chall8908

    Something that worked for me was changing this line in config/webpack.config.dev.js:
    require.resolve('webpack-dev-server/client') + '?/',
    to
    require.resolve('webpack-dev-server/client') + '?http://0.0.0.0:0/',

    After that, the requests actually all went through and it seems to be working correctly.

    EDIT: currently using version 0.4.0

  5. gaearon commented on Sep 3, 2016

    @gaearon
    ContributorAuthor

    If you see this normally please file an issue describing your setup.
    I see these errors when I stop the server (which is expected).

    My issue is about the noisy reconnect behavior.
    If you actually can't connect, that's a different problem, needing a separate issue.

  6. added this to the 1.0.0 milestone on Sep 3, 2016
  7. SpaceK33z commented on Sep 13, 2016

    @SpaceK33z
    Contributor

    For future reference, this has been fixed in dev-server v2 (in beta). See the changelog for more info.

  8. gaearon commented on Sep 24, 2016

    @gaearon
    ContributorAuthor

    Also backported to 1.x and now used by CRA (thanks!)
    With exponential backoff I only see a few of these so I think it's fine now.

  9. locked and limited conversation to collaborators on Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions