We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a65fe1 commit d07f36aCopy full SHA for d07f36a
packages/kbn-storybook/index.js
@@ -66,12 +66,17 @@ exports.runStorybookCli = config => {
66
// storybook never completes, so neither will this promise
67
const configDir = join(__dirname, 'storybook_config');
68
log.debug('Config dir:', configDir);
69
- await storybook({
+
70
+ const config = {
71
mode: flags.site ? 'static' : 'dev',
72
port: 9001,
73
configDir,
- outputDir: flags.site ? join(ASSET_DIR, name) : undefined,
74
- });
+ };
75
+ if (flags.site) {
76
+ config.outputDir = join(ASSET_DIR, name);
77
+ }
78
79
+ await storybook(config);
80
81
// Line is only reached when building the static version
82
if (flags.site) process.exit();
0 commit comments