1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00
unleash.unleash/website/.storybook/main.js

26 lines
617 B
JavaScript

const path = require('path');
module.exports = {
stories: [
'../src/**/*.stories.mdx',
'../src/**/*.stories.@(js|jsx|ts|tsx)',
],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'storybook-addon-root-attribute/register',
],
framework: '@storybook/react',
staticDirs: [
{
from: '../static',
to: '/',
},
],
webpackFinal: async (config) => {
config.resolve.alias['@site'] = path.resolve(__dirname, '../');
return config;
},
};