Storybook: How export async from storybook/webpack.config.js

Created on 11 Sep 2018  路  2Comments  路  Source: storybookjs/storybook

Hello. Faced the problem that I need to make asynchronous calls before exporting the config from storybook/webpack.config.js.

module.exports = configureStorybook;

async function configureStorybook(storybookBaseConfig) {
    const config = await Promise(...)
    storybookBaseConfig.module = config.module;
    storybookBaseConfig.resolve = config.resolve;

    return storybookBaseConfig;
}

it's possible? Because native webpack support return promise/async functions
thanks

core feature request question / support

Most helpful comment

Released in v4.rc2

All 2 comments

Currently it's not possible.

Released in v4.rc2

Was this page helpful?
0 / 5 - 0 ratings