Allow local storybook build even if there are warnings
This commit is contained in:
@@ -54,8 +54,10 @@ module.exports = {
|
||||
({ constructor }) => constructor.name !== 'ProgressPlugin',
|
||||
);
|
||||
|
||||
// Fail storybook build if there are webpack warnings
|
||||
config.plugins.push(new WebpackPluginFailBuildOnWarning())
|
||||
// Fail storybook build on CI if there are webpack warnings.
|
||||
if (process.env.CI) {
|
||||
config.plugins.push(new WebpackPluginFailBuildOnWarning())
|
||||
}
|
||||
|
||||
return config;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user