Files
Homarr/.storybook/main.js

31 lines
1.0 KiB
JavaScript
Raw Normal View History

2022-04-24 22:36:47 +02:00
module.exports = {
2022-05-14 10:10:18 +02:00
stories: ['../src/components/**/*.story.mdx', '../src/components/**/*.story.*'],
2022-04-24 22:36:47 +02:00
addons: [
2022-04-27 03:11:21 +02:00
'@storybook/addon-links',
'storybook-addon-mock/register',
2022-04-27 03:11:21 +02:00
'@storybook/addon-essentials',
2022-04-24 22:36:47 +02:00
],
2022-04-27 03:11:21 +02:00
typescript: {
check: false,
reactDocgen: false,
},
2022-04-24 22:36:47 +02:00
framework: '@storybook/react',
2022-04-27 03:11:21 +02:00
features: { emotionAlias: false },
webpackFinal: async (config, { configType }) => {
// `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION'
// You can change the configuration based on that.
// 'PRODUCTION' is used when building the static version of storybook.
// https://github.com/polkadot-js/extension/issues/621#issuecomment-759341776
// framer-motion uses the .mjs notation and we need to include it so that webpack will
// transpile it for us correctly (enables using a CJS module inside an ESM).
config.module.rules.push({
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto',
});
// Return the altered config
return config;
},
2022-04-24 22:36:47 +02:00
};