mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
1c942fe69e
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9006 Co-authored-by: Nicolas Inchauspe <710410+nicoinch@users.noreply.github.com> Co-authored-by: Brandon Simmons <210815+jberryman@users.noreply.github.com> Co-authored-by: Daniele Cammareri <5709409+dancamma@users.noreply.github.com> Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com> Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com> Co-authored-by: Samir Talwar <47582+SamirTalwar@users.noreply.github.com> Co-authored-by: Anon Ray <616387+ecthiender@users.noreply.github.com> Co-authored-by: Tom Harding <6302310+i-am-tom@users.noreply.github.com> Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com> Co-authored-by: John Kiragu <11444316+kigsmtua@users.noreply.github.com> Co-authored-by: Matthew Goodwin <49927862+m4ttheweric@users.noreply.github.com> Co-authored-by: Divi <32202683+imperfect-fourth@users.noreply.github.com> Co-authored-by: paritosh-08 <85472423+paritosh-08@users.noreply.github.com> Co-authored-by: Aaysha <109507451+aayshasura@users.noreply.github.com> Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com> Co-authored-by: Erik Magnusson <32518962+ejkkan@users.noreply.github.com> GitOrigin-RevId: fe4953db62326fb3a8de118f8bba2add9bb9c2c2
39 lines
901 B
TypeScript
39 lines
901 B
TypeScript
import type { StorybookConfig } from '@storybook/react-webpack5';
|
|
import { Configuration } from 'webpack';
|
|
import rootMain from '../../../../.storybook/main';
|
|
|
|
const config: StorybookConfig = {
|
|
...rootMain,
|
|
|
|
staticDirs: ['../../../../static'],
|
|
|
|
stories: [
|
|
'../src/stories/**/*.stories.mdx',
|
|
'../src/stories/**/*.stories.@(js|jsx|ts|tsx)',
|
|
],
|
|
|
|
addons: [
|
|
...(rootMain.addons.filter(
|
|
addon => addon !== 'storybook-addon-console-env'
|
|
) || []),
|
|
'@nrwl/react/plugins/storybook',
|
|
'./../preset.js',
|
|
],
|
|
|
|
webpackFinal: async (config: Configuration) => {
|
|
// apply any global webpack configs that might have been specified in .storybook/main.ts
|
|
if (rootMain.webpackFinal) {
|
|
config = await rootMain.webpackFinal(config);
|
|
}
|
|
|
|
return config;
|
|
},
|
|
|
|
framework: {
|
|
name: '@storybook/react-webpack5',
|
|
options: {},
|
|
},
|
|
};
|
|
|
|
export default config;
|