warning filtering (analagous to webpack's stats.warningsFilter)
See original GitHub issueIs your feature request related to a problem? Please describe.
In our main frontend build we’re using Webpack’s stats warningsFilter
to suppress innocuous warnings from ts-loader.
There doesn’t seem to be a way to do this in our storybook build, so we get pages of unwanted warnings.
The Webpack stats doc mentions:
This option does not have any effect when using the Node.js API.
I assume that’s what’s going on here?
Describe the solution you’d like An equivalent for Webpack’s stats option that I can use in Storybook builds.
Describe alternatives you’ve considered
I looked into other ways to control the Storybook build output, but all I could find was build-storybook’s --quiet
option, which doesn’t filter the warnings out.
Are you able to assist bring the feature to reality? Maybe, with some guidance about where to start!
Additional context Here’s what we’re doing in our app builds, that doesn’t work in Storybook:
stats: {
warningsFilter: /export .* was not found in/,
},
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:12 (7 by maintainers)
Top GitHub Comments
I just used this webpack plugin to sort, filter and organize webpack stats: https://www.npmjs.com/package/webpack-shower
anyone still using webpack-shower or webpack-filter-warnings-plugin? I am on Storybook 6.0.22 and can not get rid of that warning. Tried both plugins.