Giter Site home page Giter Site logo

Comments (11)

steida avatar steida commented on August 25, 2024 78

My config:

// It suppress error shown in console, so it has to be set to false.
quiet: false,
// It suppress everything except error, so it has to be set to false as well
// to see success build.
noInfo: false,
stats: {
  // Config for minimal console.log mess.
  assets: false,
  colors: true,
  version: false,
  hash: false,
  timings: false,
  chunks: false,
  chunkModules: false
}

from webpack-dev-server.

dan-kez avatar dan-kez commented on August 25, 2024 5

Sorry for commenting on an old thread.

If others end up here looking for a way to show the startup url on webpack-dev-server initialization (e.g. localhost:3000) but not have a mess in the console this config worked for me:

  stats: {
      all: false,
      // Show the url we're serving at
      wds: true,
      // Config for minimal console.log mess.
      assets: false,
      colors: true,
      version: false,
      hash: false,
      timings: false,
      chunks: false,
      chunkModules: false,
    },

The wds key is not documented so far as I can tell.

from webpack-dev-server.

SpaceK33z avatar SpaceK33z commented on August 25, 2024 2

https://webpack.js.org/configuration/stats/#stats

from webpack-dev-server.

jhnns avatar jhnns commented on August 25, 2024

Yep. At the current state of webpack it's time to define different log levels... but this is an issue of webpack (webpack/webpack#476).

Close this one?

from webpack-dev-server.

maspwr avatar maspwr commented on August 25, 2024

The example config @steida gave is very helpful. That seems more or less the requested behavior (in lieu of something like logging levels). Perhaps this is just a documentation bug to explain the stats options better?

from webpack-dev-server.

steida avatar steida commented on August 25, 2024

@maspwr Feel free to copy/past from or into https://github.com/steida/este

from webpack-dev-server.

maspwr avatar maspwr commented on August 25, 2024

@steida Very cool. Thanks for the link!

from webpack-dev-server.

kentcdodds avatar kentcdodds commented on August 25, 2024

Just verifying @steida, what you provided isn't supposed to work today right? You were just suggesting that as an API. I just tried it and it didn't work for me, so that's why I'm just checking that I'm not missing anything...

from webpack-dev-server.

ntdb avatar ntdb commented on August 25, 2024

@steida Thank you, this is exactly what I was looking for.

@kentcdodds The stats config definitely works for me. My frontend scaffold is a lightweight example (webpack version 1.10.1).

from webpack-dev-server.

chanon avatar chanon commented on August 25, 2024

I think using the stats config is the correct solution, it worked for me and there are lots of options to choose what to show or not. Thank you very much @steida. Closing this issue.

from webpack-dev-server.

bjunix avatar bjunix commented on August 25, 2024

Where is the stats config option documented? If it's not documented, is there in issue for the missing documentation?

from webpack-dev-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.