Files
Homarr/.storybook/main.js

35 lines
1.1 KiB
JavaScript
Raw Normal View History

2022-04-24 22:36:47 +02:00
module.exports = {
2022-04-27 03:11:21 +02:00
stories: ['../**/*.story.mdx', '../**/*.story.*'],
2022-04-24 22:36:47 +02:00
addons: [
'storybook-dark-mode',
2022-04-27 03:11:21 +02:00
'@storybook/addon-links',
'@storybook/addon-essentials',
2022-04-24 22:36:47 +02:00
{
name: 'storybook-addon-turbo-build',
options: { optimizationLevel: 2 },
},
],
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
};