Allow local storybook build even if there are warnings

This commit is contained in:
Himanshu Mishra
2020-05-05 16:50:27 +09:00
parent 23f083a19b
commit 706821337e
+4 -2
View File
@@ -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;
},