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

Silence Webpack Output #376

Closed
chibicode opened this issue Aug 12, 2016 · 1 comment
Closed

Silence Webpack Output #376

chibicode opened this issue Aug 12, 2016 · 1 comment

Comments

@chibicode
Copy link
Contributor

chibicode commented Aug 12, 2016

Just FYI for people having the same question - if you would like to suppress webpack output, try this:

// On your custom webpack config
module.exports = {
  ...
  devServer: {
    stats: 'errors-only'
  }
  ...
}

This works because react-storybook uses webpack dev middleware, which supports the above option. See: webpack/webpack#1191 (comment)

Before

image

After

image

@nikfrank
Copy link

this isn't working for me.

I tried all of

devServer: { stats: 'none' | 'errors-only' | { chunks: false } }

in my webpack config

every time I restart the storybook, nothing happens -

SO I solved it by editing the
./node_modules/@kadira/storybook/dist/server/middleware.js

with

var devMiddlewareOptions = {
noInfo: true,
stats: 'errors-only',
publicPath: config.output.publicPath,
watchOptions: config.watchOptions || {}
};

wherein I saw the problem.

The devMiddleware was not using any of the custom config!

however, I don't like this solution.

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

2 participants