From 706821337e05fecf0b2f60086a8791f12bc98261 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Tue, 5 May 2020 16:50:27 +0900 Subject: [PATCH] Allow local storybook build even if there are warnings --- packages/storybook/.storybook/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/storybook/.storybook/main.js b/packages/storybook/.storybook/main.js index cf003d0981..12b9c34435 100644 --- a/packages/storybook/.storybook/main.js +++ b/packages/storybook/.storybook/main.js @@ -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; },