mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
fix: 🐛 make dev server Storybook builds work again (#58188)
This commit is contained in:
parent
2121b8c1b2
commit
cdda82ec14
1 changed files with 8 additions and 3 deletions
|
@ -66,12 +66,17 @@ exports.runStorybookCli = config => {
|
||||||
// storybook never completes, so neither will this promise
|
// storybook never completes, so neither will this promise
|
||||||
const configDir = join(__dirname, 'storybook_config');
|
const configDir = join(__dirname, 'storybook_config');
|
||||||
log.debug('Config dir:', configDir);
|
log.debug('Config dir:', configDir);
|
||||||
await storybook({
|
|
||||||
|
const config = {
|
||||||
mode: flags.site ? 'static' : 'dev',
|
mode: flags.site ? 'static' : 'dev',
|
||||||
port: 9001,
|
port: 9001,
|
||||||
configDir,
|
configDir,
|
||||||
outputDir: flags.site ? join(ASSET_DIR, name) : undefined,
|
};
|
||||||
});
|
if (flags.site) {
|
||||||
|
config.outputDir = join(ASSET_DIR, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
await storybook(config);
|
||||||
|
|
||||||
// Line is only reached when building the static version
|
// Line is only reached when building the static version
|
||||||
if (flags.site) process.exit();
|
if (flags.site) process.exit();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue