2022-02-11 13:56:28 +00:00
|
|
|
const rootMain = require('../../../.storybook/main');
|
2021-09-15 18:52:57 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2022-02-11 13:56:28 +00:00
|
|
|
...rootMain,
|
|
|
|
|
|
|
|
core: { ...rootMain.core, builder: 'webpack5' },
|
|
|
|
|
|
|
|
stories: [
|
|
|
|
...rootMain.stories,
|
2022-02-21 15:41:32 +00:00
|
|
|
'../src/**/*.stories.mdx',
|
|
|
|
'../src/**/*.stories.@(js|jsx|ts|tsx)',
|
|
|
|
],
|
|
|
|
addons: [
|
|
|
|
...rootMain.addons,
|
|
|
|
'@nrwl/react/plugins/storybook',
|
|
|
|
'storybook-addon-themes',
|
2021-09-15 18:52:57 +00:00
|
|
|
],
|
2022-02-11 13:56:28 +00:00
|
|
|
webpackFinal: async (config, { configType }) => {
|
|
|
|
// apply any global webpack configs that might have been specified in .storybook/main.js
|
|
|
|
if (rootMain.webpackFinal) {
|
|
|
|
config = await rootMain.webpackFinal(config, { configType });
|
|
|
|
}
|
|
|
|
|
|
|
|
// add your own webpack tweaks if needed
|
|
|
|
|
|
|
|
return config;
|
|
|
|
},
|
2021-09-15 18:52:57 +00:00
|
|
|
};
|