Skip to content

Add possibility to hide even startup information when quiet === true #2525

Closed

Description

@marcofugaro
  • Operating System: OSX
  • Node Version: v13.13.0
  • NPM Version: 6.14.4
  • webpack Version: 4.42.1
  • webpack-dev-server Version: 3.10.3
  • Browser: Chrome
  • This is a bug
  • This is a modification request

Code

REPRODUCIBLE REPO

// webpack.config.js
module.exports = {
  devServer: {
    clientLogLevel: 'silent',
    quiet: true,
  }
}

From the documentation

With devServer.quiet enabled, nothing except the initial startup information will be written to the console.

However I want to hide also the startup information.

This happened since #2235, is there a plan to support hiding that information as well again?

Expected Behavior

Nothing should be outputted to the console

Actual Behavior

Screenshot 2020-04-20 at 20 06 57

For Features; What is the motivation and/or use-case for the feature?

I am using webpack-dev-server in a custom webapp builder, where I have my custom logs. Something like create-react-app. I want to decide what is output to the console and what not.

Activity

  1. neberej commented on Apr 24, 2020

    @neberej

    There is noInfo: true for this scenario.

    I use the following settings and see no console output.

     devServer: {
          clientLogLevel: 'silent',
          noInfo: true
        },
    
  2. marcofugaro commented on Apr 24, 2020

    @marcofugaro
    ContributorAuthor

    @neberej I've tried your configuration, it still shows the initial information.

    I've made a repro if you want to check it out.

  3. jquense commented on Apr 30, 2020

    @jquense

    This is confusing behavior. WDS is explicitly bypassing the configured logger when quiet is true. quiet should mean what is says, no logs

  4. alexander-akait commented on May 25, 2020

    @alexander-akait
    Member

    @jquense yep, for v4 we migrate on built-in webpack logger (problems doesn't exist), so you can easy disable all logs, for v3 you should use noInfo: true (we can't change it because it is a breaking change)

  5. thealjey commented on Aug 19, 2021

    @thealjey

    @alexander-akait
    even with stats: "errors-warnings", (or even with "none") in webpack.config
    I see:

    <i> [webpack-dev-server] Project is running at:
    <i> [webpack-dev-server] Loopback: http://localhost:8080/
    <i> [webpack-dev-server] On Your Network (IPv4): http://192.168.91.128:8080/
    <i> [webpack-dev-server] Content not from webpack is served from '/home/al/Projects/designer/public' directory
    <i> [webpack-dev-server] 404s will fallback to '/index.html'
    webpack compiled successfully
    No issues found.
    webpack compiled successfully
    No issues found.
    

    I would like to get rid of all the "<i>" lines
    (and to someday figure out why it compiles twice on startup)
    I have the following package versions:
    webpack: 5.51.0
    webpack-cli: 4.8.0
    webpack-dev-server: 4.0.0

  6. alexander-akait commented on Aug 19, 2021

    @alexander-akait
    Member
  7. alexander-akait commented on Aug 19, 2021

    @alexander-akait
    Member

    If you want to hide unnecessary things, please use level: "warn"

  8. alexander-akait commented on Aug 19, 2021

    @alexander-akait
    Member

    I would like to get rid of all the "<i>" lines

    Impossible, because it means info, you can disable colors or your terminal can't support colors, so we use <i> to indicate it is info message

  9. thealjey commented on Aug 19, 2021

    @thealjey

    @alexander-akait
    wow, thank you so much!
    this was bugging me for months :)

  10. meduzen commented on Aug 19, 2021

    @meduzen

    I would like to get rid of all the "" lines

    Impossible, because it means info, you can disable colors or your terminal can't support colors, so we use <i> to indicate it is info message

    It’s the first time I see this “output design” choice, so it bugged me too. I understand the intent, but the message is pretty clear by itself. Not sure it needs an additional flag to indicate it’s informative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions