pokertk/.storybook/main.js

25 lines
677 B
JavaScript
Raw Normal View History

2023-03-22 21:29:42 +11:00
const path = require('path');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
2023-03-22 21:16:47 +11:00
module.exports = {
2023-03-22 21:29:42 +11:00
stories: ['../src/**/*.stories.tsx'],
2023-03-22 21:16:47 +11:00
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/preset-create-react-app',
],
framework: '@storybook/react',
core: {
builder: '@storybook/builder-webpack5',
},
2023-03-22 21:29:42 +11:00
webpackFinal: async config => {
config.resolve.plugins = config.resolve.plugins || [];
config.resolve.plugins = [
new TsconfigPathsPlugin({
configFile: path.resolve(__dirname, '../tsconfig.json'),
}),
];
return config;
},
2023-03-22 21:16:47 +11:00
};